aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/parser/picker.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-15 22:21:56 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-15 22:21:56 +0800
commit6d61e0c46d33b917438386191e1e11351359abac (patch)
tree93a402007a4ac1a4b561a454ab758480d7213c0d /mingling/src/parser/picker.rs
parenta2eefa6abb7b7b86ab78466bf5abc4877d255d79 (diff)
Inline `strip_all_flags` and simplify `ShellContext` methods
Simplify `strip_all_flags` by using `Vec::retain` instead of reallocating. Update doc examples to use `ShellContext` methods directly instead of the now-removed `ShellContextHelper`. Rename `as_picker` to `to_picker` for consistency with Rust conventions. Mark doc tests as `ignore` and add necessary imports.
Diffstat (limited to 'mingling/src/parser/picker.rs')
-rw-r--r--mingling/src/parser/picker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mingling/src/parser/picker.rs b/mingling/src/parser/picker.rs
index 915bc35..91c7c83 100644
--- a/mingling/src/parser/picker.rs
+++ b/mingling/src/parser/picker.rs
@@ -725,7 +725,7 @@ where
Self: Into<Vec<String>>,
{
/// Converts the value into a `Picker` by first converting it into a `Vec<String>`.
- fn as_picker(self) -> Picker
+ fn to_picker(self) -> Picker
where
Self: Sized,
Vec<String>: From<Self>,