From 8c08862e85521c8d43e5e7cbf73b0842fbf521d0 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru <sylvestre@debian.org> Date: Fri, 26 Jan 2024 20:22:40 +0100 Subject: [PATCH] rustfmt the code --- src/uu/mountpoint/src/mountpoint.rs | 15 ++++++++------- tests/by-util/test_renice.rs | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/uu/mountpoint/src/mountpoint.rs b/src/uu/mountpoint/src/mountpoint.rs index 5a41a0b..ef2ee84 100644 --- a/src/uu/mountpoint/src/mountpoint.rs +++ b/src/uu/mountpoint/src/mountpoint.rs @@ -30,7 +30,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { eprintln!("Error: Path argument is required"); process::exit(1); } - Ok(()) + Ok(()) } fn is_mountpoint(path: &str) -> bool { @@ -56,10 +56,11 @@ pub fn uu_app() -> Command { .about(ABOUT) .override_usage(format_usage(USAGE)) .infer_long_args(true) - - .arg(Arg::new("path") - .value_name("PATH") - .help("Path to check for mountpoint") - .required(true) - .index(1)) + .arg( + Arg::new("path") + .value_name("PATH") + .help("Path to check for mountpoint") + .required(true) + .index(1), + ) } diff --git a/tests/by-util/test_renice.rs b/tests/by-util/test_renice.rs index af7238d..8d1c044 100644 --- a/tests/by-util/test_renice.rs +++ b/tests/by-util/test_renice.rs @@ -4,7 +4,6 @@ // file that was distributed with this source code. // spell-checker:ignore (words) symdir somefakedir - use crate::common::util::{TestScenario, UCommand}; #[test]