rustfmt the code
This commit is contained in:
@@ -30,7 +30,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||||||
eprintln!("Error: Path argument is required");
|
eprintln!("Error: Path argument is required");
|
||||||
process::exit(1);
|
process::exit(1);
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_mountpoint(path: &str) -> bool {
|
fn is_mountpoint(path: &str) -> bool {
|
||||||
@@ -56,10 +56,11 @@ pub fn uu_app() -> Command {
|
|||||||
.about(ABOUT)
|
.about(ABOUT)
|
||||||
.override_usage(format_usage(USAGE))
|
.override_usage(format_usage(USAGE))
|
||||||
.infer_long_args(true)
|
.infer_long_args(true)
|
||||||
|
.arg(
|
||||||
.arg(Arg::new("path")
|
Arg::new("path")
|
||||||
.value_name("PATH")
|
.value_name("PATH")
|
||||||
.help("Path to check for mountpoint")
|
.help("Path to check for mountpoint")
|
||||||
.required(true)
|
.required(true)
|
||||||
.index(1))
|
.index(1),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
@@ -4,7 +4,6 @@
|
|||||||
// file that was distributed with this source code.
|
// file that was distributed with this source code.
|
||||||
// spell-checker:ignore (words) symdir somefakedir
|
// spell-checker:ignore (words) symdir somefakedir
|
||||||
|
|
||||||
|
|
||||||
use crate::common::util::{TestScenario, UCommand};
|
use crate::common::util::{TestScenario, UCommand};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Reference in New Issue
Block a user