fix: make TargetSelector new function public (#1416)

This commit is contained in:
Bjorn Beishline
2026-01-31 07:43:20 -07:00
committed by GitHub
parent 452d8c413b
commit eb76c6377d

View File

@@ -130,7 +130,8 @@ pub struct TargetSelector {
impl TargetSelector {
/// Creates a new target selector with the specified type and default conditions.
fn new(selector_type: EntitySelectorType) -> Self {
#[must_use]
pub fn new(selector_type: EntitySelectorType) -> Self {
let mut filter = Vec::new();
match selector_type {
EntitySelectorType::Source => filter.push(EntityFilter::Limit(1)),