@@ -1157,7 +1157,7 @@ impl<'a, Storage: driver::Storage> Filesystem<'a, Storage> {
11571157 /// Creates a new, empty directory at the provided path.
11581158 pub fn create_dir ( & self , path : & Path ) -> Result < ( ) > {
11591159 #[ cfg( test) ]
1160- println ! ( "creating {:?}" , path ) ;
1160+ println ! ( "creating {path :?}" ) ;
11611161 let return_code =
11621162 unsafe { ll:: lfs_mkdir ( & mut self . alloc . borrow_mut ( ) . state , path. as_ptr ( ) ) } ;
11631163 result_from ( ( ) , return_code)
@@ -1175,7 +1175,7 @@ impl<'a, Storage: driver::Storage> Filesystem<'a, Storage> {
11751175 if path_slice[ i] == b'/' {
11761176 let dir = PathBuf :: try_from ( & path_slice[ ..i] ) . map_err ( |_| Error :: IO ) ?;
11771177 #[ cfg( test) ]
1178- println ! ( "generated PathBuf dir {:?} using i = {}" , & dir , i ) ;
1178+ println ! ( "generated PathBuf dir {dir :?} using i = {i}" ) ;
11791179 if let Err ( error) = self . create_dir ( & dir) {
11801180 if error != Error :: ENTRY_ALREADY_EXISTED {
11811181 return Err ( error) ;
@@ -1246,7 +1246,7 @@ impl<'a, Storage: driver::Storage> Filesystem<'a, Storage> {
12461246 /// and will entirely replace its contents if it does.
12471247 pub fn write ( & self , path : & Path , contents : & [ u8 ] ) -> Result < ( ) > {
12481248 #[ cfg( test) ]
1249- println ! ( "writing {:?}" , path ) ;
1249+ println ! ( "writing {path :?}" ) ;
12501250 File :: create_and_then ( self , path, |file| {
12511251 use io:: Write ;
12521252 file. write_all ( contents)
@@ -1260,7 +1260,7 @@ impl<'a, Storage: driver::Storage> Filesystem<'a, Storage> {
12601260 /// it will fail if the file is not already large enough with regard to the `pos` parameter
12611261 pub fn write_chunk ( & self , path : & Path , contents : & [ u8 ] , pos : OpenSeekFrom ) -> Result < ( ) > {
12621262 #[ cfg( test) ]
1263- println ! ( "writing {:?}" , path ) ;
1263+ println ! ( "writing {path :?}" ) ;
12641264 OpenOptions :: new ( )
12651265 . read ( true )
12661266 . write ( true )
0 commit comments