aboutsummaryrefslogtreecommitdiff
path: root/mling/src/cli/namespace_mgr.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-04-28 21:37:34 +0800
committer魏曹先生 <1992414357@qq.com>2026-04-28 21:37:34 +0800
commit5bf4209bd138faf76e3bd316fdfa128a08f2bb2e (patch)
tree8b8accd12c5831360f8c609a3c019373dc4db7d4 /mling/src/cli/namespace_mgr.rs
parent94ac5ec454ef9fa687857b8d4323d0269bddb3c2 (diff)
Apply clippy suggestions for code simplification
Diffstat (limited to 'mling/src/cli/namespace_mgr.rs')
-rw-r--r--mling/src/cli/namespace_mgr.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mling/src/cli/namespace_mgr.rs b/mling/src/cli/namespace_mgr.rs
index 9781040..4f70c15 100644
--- a/mling/src/cli/namespace_mgr.rs
+++ b/mling/src/cli/namespace_mgr.rs
@@ -26,7 +26,7 @@ pub(crate) fn comp_trust(ctx: &ShellContext) -> Suggest {
return Suggest::Suggest(
list_namespaces(false, true, true)
.into_iter()
- .map(|i| SuggestItem::new(i))
+ .map(SuggestItem::new)
.collect::<std::collections::BTreeSet<_>>(),
);
}
@@ -39,7 +39,7 @@ pub(crate) fn comp_untrust(ctx: &ShellContext) -> Suggest {
return Suggest::Suggest(
list_namespaces(true, false, true)
.into_iter()
- .map(|i| SuggestItem::new(i))
+ .map(SuggestItem::new)
.collect::<std::collections::BTreeSet<_>>(),
);
}
@@ -61,7 +61,7 @@ pub(crate) fn comp_set_trust(ctx: &ShellContext) -> Suggest {
return Suggest::Suggest(
list_namespaces(true, true, true)
.into_iter()
- .map(|i| SuggestItem::new(i))
+ .map(SuggestItem::new)
.collect::<std::collections::BTreeSet<_>>(),
);
}
@@ -74,7 +74,7 @@ pub(crate) fn comp_remove_namespace(ctx: &ShellContext) -> Suggest {
return Suggest::Suggest(
list_namespaces(true, true, true)
.into_iter()
- .map(|i| SuggestItem::new(i))
+ .map(SuggestItem::new)
.collect::<std::collections::BTreeSet<_>>(),
);
}