fix clippy

This commit is contained in:
Irevoire 2022-10-22 17:17:09 +02:00
parent b0bfc3bdbd
commit 395766bf26
No known key found for this signature in database
GPG key ID: 7A6A970C96104F1B
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();