From e985236188cd1b61469deed99ebf49cd2b5ad743 Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Tue, 28 Jan 2025 14:19:03 -0500 Subject: [PATCH] unnecessary borrow --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index 284128b..2549d55 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -88,7 +88,7 @@ impl Command for Pse { let mut args = self.rt.input.split_whitespace(); if let Some(command) = args.next() { match command { - "cd" => if ChangeDirectory.change_directory(args).is_some() { self.history.add(&self.rt.input.as_str()) }, + "cd" => if ChangeDirectory.change_directory(args).is_some() { self.history.add(self.rt.input.as_str()) }, command => if let Ok(mut child) = process::Command::new(command).args(args).spawn() { self.history.add(self.rt.input.as_str()); child.wait().ok();