fix(ci): clippy nightly

This commit is contained in:
rudy
2022-12-05 17:52:22 +01:00
committed by rudy-6-4
parent d98df3d4c8
commit 0d7cb97e7e
2 changed files with 6 additions and 19 deletions

View File

@@ -129,10 +129,7 @@ where
let filelock = match FileLock::lock(path, is_blocking, options) {
Ok(lock) => lock,
Err(error) => {
println!(
"PersistentCache::read_from_disk: Cannot lock cache file {}: {}",
path, error
);
println!("PersistentCache::read_from_disk: Cannot lock cache file {path}: {error}");
return None;
}
};
@@ -153,7 +150,7 @@ where
Ok(()) => (),
Err(err) => {
let path = &self.path;
println!("PersistentCache::sync_to_disk: Cannot create directory {path}, {err}",);
println!("PersistentCache::sync_to_disk: Cannot create directory {path}, {err}");
return;
}
};
@@ -191,10 +188,7 @@ where
}
}
Err(err) => {
println!(
"PersistentCache::read_from_disk: cannot read size {} {}",
path, err
);
println!("PersistentCache::read_from_disk: cannot read size {path} {err}");
return None;
}
};
@@ -211,10 +205,7 @@ where
}
}
Err(error) => {
println!(
"PersistentCache::read_given_lock: Cannot read version {}: {}",
path, error
);
println!("PersistentCache::read_given_lock: Cannot read version {path}: {error}");
Self::clear_file(path);
return None;
}
@@ -222,10 +213,7 @@ where
match bincode::deserialize_from(buf.borrow_mut()) {
Ok(content) => Some(content),
Err(error) => {
println!(
"PersistentCache::read_given_lock: Cannot read hashmap {}: {}",
path, error
);
println!("PersistentCache::read_given_lock: Cannot read hashmap {path}: {error}");
Self::clear_file(path);
None
}

View File

@@ -225,8 +225,7 @@ pub fn compute_print_results(mut writer: impl Write, args: &Args) -> Result<(),
} else {
writeln!(
writer,
" # no solution starting from log norm2 = {}",
no_solution_at
" # no solution starting from log norm2 = {no_solution_at}"
)?;
}
}