From f27f5aeb09616b932ab48f0905994879dd8bafe5 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sun, 17 May 2026 22:30:50 +0800 Subject: Rename `NextProcess` to `Next` across the codebase --- mling/src/cli/namespace_mgr.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mling/src/cli/namespace_mgr.rs') diff --git a/mling/src/cli/namespace_mgr.rs b/mling/src/cli/namespace_mgr.rs index 0f5a115..0f11332 100644 --- a/mling/src/cli/namespace_mgr.rs +++ b/mling/src/cli/namespace_mgr.rs @@ -79,7 +79,7 @@ pub(crate) fn comp_remove_namespace(ctx: &ShellContext) -> Suggest { } #[chain] -pub(crate) fn handle_set_trust(p: SetTrustNamespaceEntry) -> NextProcess { +pub(crate) fn handle_set_trust(p: SetTrustNamespaceEntry) -> Next { let (trusted, namespace) = route!( Picker::new(p.inner) .pick::(["-t", "--trusted"]) @@ -91,7 +91,7 @@ pub(crate) fn handle_set_trust(p: SetTrustNamespaceEntry) -> NextProcess { } #[chain] -pub(crate) fn handle_trust(p: TrustNamespaceEntry) -> NextProcess { +pub(crate) fn handle_trust(p: TrustNamespaceEntry) -> Next { SetTrustNamespaceEntry::new({ let mut args = p.inner.clone(); args.extend(vec!["-t".to_string(), "yes".to_string()]); @@ -100,7 +100,7 @@ pub(crate) fn handle_trust(p: TrustNamespaceEntry) -> NextProcess { } #[chain] -pub(crate) fn handle_untrust(p: UntrustNamespaceEntry) -> NextProcess { +pub(crate) fn handle_untrust(p: UntrustNamespaceEntry) -> Next { SetTrustNamespaceEntry::new({ let mut args = p.inner.clone(); args.extend(vec!["-t".to_string(), "no".to_string()]); @@ -109,7 +109,7 @@ pub(crate) fn handle_untrust(p: UntrustNamespaceEntry) -> NextProcess { } #[chain] -pub(crate) fn handle_remove_namespace(p: RemoveNamespaceEntry) -> NextProcess { +pub(crate) fn handle_remove_namespace(p: RemoveNamespaceEntry) -> Next { let namespace = route!( Picker::new(p.inner) .pick_or_route((), ErrorNamespaceNotProvided::default().to_render()) -- cgit