diff options
Diffstat (limited to 'src/commandline/builtins.rs')
-rw-r--r-- | src/commandline/builtins.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/commandline/builtins.rs b/src/commandline/builtins.rs index c5999f2..882a690 100644 --- a/src/commandline/builtins.rs +++ b/src/commandline/builtins.rs @@ -1,13 +1,10 @@ +use super::command::RunResult; use std::io::{Error, ErrorKind::InvalidInput}; use std::path::{Path, PathBuf}; -use super::command::RunResult; pub(in crate::commandline) fn cd(args: &[String], home: &PathBuf) -> Result<RunResult, Error> { if args.len() > 1 { - return Err(Error::new( - InvalidInput, - "Too many arguments passed to cd", - )); + return Err(Error::new(InvalidInput, "Too many arguments passed to cd")); } let root = if args.len() == 0 { |