mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Simplify the declaration
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
parent
3e7594632b
commit
369a2a6631
1 changed files with 1 additions and 4 deletions
|
@ -2001,10 +2001,7 @@ fn should_display(entry: &DirEntry, config: &Config) -> bool {
|
||||||
// If the decoding fails, still show an incorrect rendering
|
// If the decoding fails, still show an incorrect rendering
|
||||||
let file_name = match file_name.to_str() {
|
let file_name = match file_name.to_str() {
|
||||||
Some(s) => s.to_string(),
|
Some(s) => s.to_string(),
|
||||||
None => {
|
None => file_name.to_string_lossy().into_owned(),
|
||||||
let file_name_bytes = file_name.to_string_lossy();
|
|
||||||
file_name_bytes.into_owned()
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
!config
|
!config
|
||||||
.ignore_patterns
|
.ignore_patterns
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue