From 782d2458dc4ad4336e1407e1f107e43e39b0b991 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 10 Aug 2026 14:57:16 +0800 Subject: chore: enforce pedantic clippy lints and fix warnings --- mingling/src/parser/test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mingling/src/parser/test.rs') diff --git a/mingling/src/parser/test.rs b/mingling/src/parser/test.rs index 29a074d..569a091 100644 --- a/mingling/src/parser/test.rs +++ b/mingling/src/parser/test.rs @@ -536,7 +536,7 @@ fn test_picker_pick_or_route_missing() { fn test_picker_require_present() { let result: Option = Picker::new(vec!["--name", "Alice"]) .require::("--name") - .map(|p| p.unpack()); + .map(super::picker::Pick1::unpack); assert_eq!(result, Some("Alice".to_string())); } @@ -705,7 +705,7 @@ fn test_pick_with_route_after_or_route_preserves_existing_route() { #[test] fn test_picker_operate_args_filter() { let result: String = Picker::new(vec!["--name", "Alice", "--verbose"]) - .operate_args(|args| args.strip_all_flags()) + .operate_args(Argument::strip_all_flags) .pick_or("--name", "fallback_name") .unpack(); // After stripping flags, "--name" and "--verbose" are gone, "Alice" is a positional arg. -- cgit