diff --git a/crates/deno_task_shell/src/shell/types.rs b/crates/deno_task_shell/src/shell/types.rs index c2b681f..8906b16 100644 --- a/crates/deno_task_shell/src/shell/types.rs +++ b/crates/deno_task_shell/src/shell/types.rs @@ -208,9 +208,8 @@ impl ShellState { alias.clone(), cmd.split_whitespace().map(ToString::to_string).collect(), ); - }, + } EnvChange::UnAliasCommand(alias) => { - println!("unalias {}", alias); self.alias.remove(alias); } } diff --git a/crates/shell/src/commands.rs b/crates/shell/src/commands.rs index ebb407f..66c8f24 100644 --- a/crates/shell/src/commands.rs +++ b/crates/shell/src/commands.rs @@ -17,7 +17,7 @@ impl ShellCommand for AliasCommand { } // parse the args - let env_change = if let Some((alias, cmd)) = context.args[0].split_once("=") { + let env_change = if let Some((alias, cmd)) = context.args[0].split_once('=') { vec![EnvChange::AliasCommand(alias.into(), cmd.into())] } else { return Box::pin(futures::future::ready(ExecuteResult::from_exit_code(1))); @@ -34,7 +34,11 @@ impl ShellCommand for UnAliasCommand { return Box::pin(futures::future::ready(ExecuteResult::from_exit_code(1))); } - let result = ExecuteResult::Continue(0, vec![EnvChange::UnAliasCommand(context.args[0].clone())], Vec::default()); + let result = ExecuteResult::Continue( + 0, + vec![EnvChange::UnAliasCommand(context.args[0].clone())], + Vec::default(), + ); Box::pin(futures::future::ready(result)) } }