diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-30 12:25:56 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-30 12:57:52 +0200 |
commit | d49542575db8f931a4492d0b149bad028b4b68ca (patch) | |
tree | 9db7989322af9866789644d9e3abf13e6f1b7ec3 /src/commandline/builtins.rs | |
parent | Refactoring (diff) | |
download | rshell-master.tar.xz |
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 { |