From 6d61e0c46d33b917438386191e1e11351359abac Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 15 May 2026 22:21:56 +0800 Subject: 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. --- mingling/src/parser/picker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mingling/src/parser/picker.rs') 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>, { /// Converts the value into a `Picker` by first converting it into a `Vec`. - fn as_picker(self) -> Picker + fn to_picker(self) -> Picker where Self: Sized, Vec: From, -- cgit