clippy fixes

This commit is contained in:
Marco "Capypara" Köpcke 2024-12-11 12:04:29 +01:00
commit 456244fb60
No known key found for this signature in database
GPG key ID: 08131EE895D53BDB

View file

@ -153,7 +153,7 @@ pub async fn db_load_full(out_dir: &Path) -> anyhow::Result<PluginDb> {
let db_mut = db_mut.clone();
async move {
let Some(ideversion) =
IdeVersion::from_json_filename(&*file.file_name().to_string_lossy())
IdeVersion::from_json_filename(&file.file_name().to_string_lossy())
else {
warn!(
"Invalid JSON file in ide directory skipped: {}",
@ -461,7 +461,7 @@ pub async fn db_save(output_folder: &Path, db: PluginDb) -> anyhow::Result<()> {
}
pub async fn db_cleanup(db: &mut PluginDb) -> anyhow::Result<()> {
let mut used_keys: HashSet<_> = db
let used_keys: HashSet<_> = db
.ides
.values()
.flat_map(|ides| {