Fix clippy errors in cargo v1.73.0 (#1439)

It actually improves the quality of our code!

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-10-06 22:10:42 +10:00 committed by GitHub
parent af04e45b5a
commit ceba74870e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 11 deletions

View file

@ -16,7 +16,7 @@ impl ExtractedFilesEntry {
ExtractedFilesEntry::Dir(Box::new(
file_name
.map(|file_name| HashSet::from([file_name.into()]))
.unwrap_or_else(HashSet::default),
.unwrap_or_default(),
))
}
}