mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
ls: replace redundant closure with function itself
This commit is contained in:
parent
b2fa51ddd9
commit
d013461a6f
1 changed files with 1 additions and 5 deletions
|
@ -1967,11 +1967,7 @@ fn display_file_name(
|
|||
#[cfg(unix)]
|
||||
{
|
||||
if config.format != Format::Long && config.inode {
|
||||
name = path
|
||||
.md()
|
||||
.map_or_else(|| "?".to_string(), |md| get_inode(md))
|
||||
+ " "
|
||||
+ &name;
|
||||
name = path.md().map_or_else(|| "?".to_string(), get_inode) + " " + &name;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue