From 97b91369c43c8f8273de5fde9665ff5e36162d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 7 Aug 2025 17:20:13 +0200 Subject: [PATCH] Fix new clippy lints --- src/fs.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fs.rs b/src/fs.rs index 5bbdaea1..529cd037 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -1157,7 +1157,7 @@ impl<'a, Storage: driver::Storage> Filesystem<'a, Storage> { /// Creates a new, empty directory at the provided path. pub fn create_dir(&self, path: &Path) -> Result<()> { #[cfg(test)] - println!("creating {:?}", path); + println!("creating {path:?}"); let return_code = unsafe { ll::lfs_mkdir(&mut self.alloc.borrow_mut().state, path.as_ptr()) }; result_from((), return_code) @@ -1175,7 +1175,7 @@ impl<'a, Storage: driver::Storage> Filesystem<'a, Storage> { if path_slice[i] == b'/' { let dir = PathBuf::try_from(&path_slice[..i]).map_err(|_| Error::IO)?; #[cfg(test)] - println!("generated PathBuf dir {:?} using i = {}", &dir, i); + println!("generated PathBuf dir {dir:?} using i = {i}"); if let Err(error) = self.create_dir(&dir) { if error != Error::ENTRY_ALREADY_EXISTED { return Err(error); @@ -1246,7 +1246,7 @@ impl<'a, Storage: driver::Storage> Filesystem<'a, Storage> { /// and will entirely replace its contents if it does. pub fn write(&self, path: &Path, contents: &[u8]) -> Result<()> { #[cfg(test)] - println!("writing {:?}", path); + println!("writing {path:?}"); File::create_and_then(self, path, |file| { use io::Write; file.write_all(contents) @@ -1260,7 +1260,7 @@ impl<'a, Storage: driver::Storage> Filesystem<'a, Storage> { /// it will fail if the file is not already large enough with regard to the `pos` parameter pub fn write_chunk(&self, path: &Path, contents: &[u8], pos: OpenSeekFrom) -> Result<()> { #[cfg(test)] - println!("writing {:?}", path); + println!("writing {path:?}"); OpenOptions::new() .read(true) .write(true)