mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 21:34:46 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -28,7 +28,7 @@ pub fn log_file_access<P: AsRef<Path>>(file_accessed: P) {
|
||||
|
||||
writeln!(&mut file, "{:?}", file_accessed.as_ref()).expect("should write to file");
|
||||
|
||||
file.unlock().expect("unable to unlock file");
|
||||
fs2::FileExt::unlock(&file).expect("unable to unlock file");
|
||||
}
|
||||
|
||||
pub fn yaml_decode<T: serde::de::DeserializeOwned>(string: &str) -> Result<T, Error> {
|
||||
|
||||
Reference in New Issue
Block a user