unnecessary borrow

This commit is contained in:
rhpidfyre 2025-01-28 14:19:03 -05:00
parent d4ccf3b061
commit e985236188

@ -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();