aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/parser/test.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-10 14:57:16 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-10 14:57:16 +0800
commit782d2458dc4ad4336e1407e1f107e43e39b0b991 (patch)
tree2619912357c03cae32190388e9436e15431c298c /mingling/src/parser/test.rs
parent6b18873666e17ab68ffce799b1707c030166738f (diff)
chore: enforce pedantic clippy lints and fix warnings
Diffstat (limited to 'mingling/src/parser/test.rs')
-rw-r--r--mingling/src/parser/test.rs4
1 files changed, 2 insertions, 2 deletions
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<String> = Picker::new(vec!["--name", "Alice"])
.require::<String>("--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.