fix clippy

This commit is contained in:
Irevoire 2022-10-22 17:17:09 +02:00 committed by Clément Renault
parent 735a5da257
commit eb4bdde432
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
2 changed files with 4 additions and 4 deletions

View file

@ -245,7 +245,7 @@ pub(crate) mod test {
let name = entry.file_name().into_string().unwrap();
let file_type = entry.file_type().unwrap();
let is_dir = file_type.is_dir().then_some("/").unwrap_or("");
let is_dir = if file_type.is_dir() { "/" } else { "" };
assert!(!file_type.is_symlink());
writeln!(ret, "{ident} {name}{is_dir}").unwrap();