mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
fix clippy
This commit is contained in:
parent
735a5da257
commit
eb4bdde432
2 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue