From 16b7b38b92b210142d2e7adf920bdd0292445a3c Mon Sep 17 00:00:00 2001 From: electricboogie <32370782+electricboogie@users.noreply.github.com> Date: Sun, 16 Jan 2022 11:17:43 -0600 Subject: [PATCH] Run cargo fmt --- src/uu/ls/src/ls.rs | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/uu/ls/src/ls.rs b/src/uu/ls/src/ls.rs index e6297cfb7..561f278a0 100644 --- a/src/uu/ls/src/ls.rs +++ b/src/uu/ls/src/ls.rs @@ -1573,27 +1573,27 @@ fn enter_directory( // metadata returned from a DirEntry matches GNU metadata for // non-dereferenced files, and is *different* from the // metadata call on the path, see, for example, bad fds, - // so we use dir_entry metadata here when we know we + // so we use dir_entry metadata here when we know we // will need metadata later anyway - #[cfg(unix)] + #[cfg(unix)] { if !res.must_dereference - && ((config.format == Format::Long) - || (config.sort == Sort::Name) - || (config.sort == Sort::None) - || config.inode) + && ((config.format == Format::Long) + || (config.sort == Sort::Name) + || (config.sort == Sort::None) + || config.inode) { if let Ok(md) = dir_entry.metadata() { res.set_md(md) } } } - #[cfg(not(unix))] + #[cfg(not(unix))] { if !res.must_dereference - && ((config.format == Format::Long) - || (config.sort == Sort::Name) - || (config.sort == Sort::None)) + && ((config.format == Format::Long) + || (config.sort == Sort::Name) + || (config.sort == Sort::None)) { if let Ok(md) = dir_entry.metadata() { res.set_md(md) @@ -2097,10 +2097,7 @@ fn display_item_long( let _ = write!( out, "{}{} {}", - format_args!( - "{}?????????", leading_char - - ), + format_args!("{}?????????", leading_char), if item.security_context.len() > 1 { // GNU `ls` uses a "." character to indicate a file with a security context, // but not other alternate access method.