mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
Run cargo fmt
This commit is contained in:
parent
e6ce049d2c
commit
16b7b38b92
1 changed files with 11 additions and 14 deletions
|
@ -1578,10 +1578,10 @@ fn enter_directory(
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
{
|
{
|
||||||
if !res.must_dereference
|
if !res.must_dereference
|
||||||
&& ((config.format == Format::Long)
|
&& ((config.format == Format::Long)
|
||||||
|| (config.sort == Sort::Name)
|
|| (config.sort == Sort::Name)
|
||||||
|| (config.sort == Sort::None)
|
|| (config.sort == Sort::None)
|
||||||
|| config.inode)
|
|| config.inode)
|
||||||
{
|
{
|
||||||
if let Ok(md) = dir_entry.metadata() {
|
if let Ok(md) = dir_entry.metadata() {
|
||||||
res.set_md(md)
|
res.set_md(md)
|
||||||
|
@ -1591,9 +1591,9 @@ fn enter_directory(
|
||||||
#[cfg(not(unix))]
|
#[cfg(not(unix))]
|
||||||
{
|
{
|
||||||
if !res.must_dereference
|
if !res.must_dereference
|
||||||
&& ((config.format == Format::Long)
|
&& ((config.format == Format::Long)
|
||||||
|| (config.sort == Sort::Name)
|
|| (config.sort == Sort::Name)
|
||||||
|| (config.sort == Sort::None))
|
|| (config.sort == Sort::None))
|
||||||
{
|
{
|
||||||
if let Ok(md) = dir_entry.metadata() {
|
if let Ok(md) = dir_entry.metadata() {
|
||||||
res.set_md(md)
|
res.set_md(md)
|
||||||
|
@ -2097,10 +2097,7 @@ fn display_item_long(
|
||||||
let _ = write!(
|
let _ = write!(
|
||||||
out,
|
out,
|
||||||
"{}{} {}",
|
"{}{} {}",
|
||||||
format_args!(
|
format_args!("{}?????????", leading_char),
|
||||||
"{}?????????", leading_char
|
|
||||||
|
|
||||||
),
|
|
||||||
if item.security_context.len() > 1 {
|
if item.security_context.len() > 1 {
|
||||||
// GNU `ls` uses a "." character to indicate a file with a security context,
|
// GNU `ls` uses a "." character to indicate a file with a security context,
|
||||||
// but not other alternate access method.
|
// but not other alternate access method.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue