From d7067c3311779723014d30411c0996d5056d4812 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 26 Jan 2024 20:20:25 +0100 Subject: [PATCH] rustfmt the code --- src/uu/pwdx/src/pwdx.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/uu/pwdx/src/pwdx.rs b/src/uu/pwdx/src/pwdx.rs index b6c4a1bd..a7d603cd 100644 --- a/src/uu/pwdx/src/pwdx.rs +++ b/src/uu/pwdx/src/pwdx.rs @@ -17,7 +17,6 @@ const USAGE: &str = help_usage!("pwdx.md"); #[uucore::main] pub fn uumain(args: impl uucore::Args) -> UResult<()> { - let matches = uu_app().try_get_matches_from(args)?; let pid_str = matches.get_one::("pid").unwrap(); @@ -44,9 +43,11 @@ pub fn uu_app() -> Command { .about(ABOUT) .override_usage(format_usage(USAGE)) .infer_long_args(true) - .arg(Arg::new("pid") - .value_name("PID") - .help("Process ID") - .required(true) - .index(1)) + .arg( + Arg::new("pid") + .value_name("PID") + .help("Process ID") + .required(true) + .index(1), + ) }