@@ -43,7 +43,7 @@ impl DirNode {
4343 /// Creates a new node with the given name and type in this directory.
4444 pub fn create_node ( & self , name : & str , ty : VfsNodeType ) -> VfsResult {
4545 if self . exist ( name) {
46- log:: error!( "AlreadyExists {}" , name ) ;
46+ log:: error!( "AlreadyExists {name}" ) ;
4747 return Err ( VfsError :: AlreadyExists ) ;
4848 }
4949 let node: VfsNodeRef = match ty {
@@ -118,7 +118,7 @@ impl VfsNodeOps for DirNode {
118118 }
119119
120120 fn create ( & self , path : & str , ty : VfsNodeType ) -> VfsResult {
121- log:: debug!( "create {:?} at ramfs: {}" , ty , path ) ;
121+ log:: debug!( "create {ty :?} at ramfs: {path}" ) ;
122122 let ( name, rest) = split_path ( path) ;
123123 if let Some ( rest) = rest {
124124 match name {
@@ -142,7 +142,7 @@ impl VfsNodeOps for DirNode {
142142 }
143143
144144 fn remove ( & self , path : & str ) -> VfsResult {
145- log:: debug!( "remove at ramfs: {}" , path ) ;
145+ log:: debug!( "remove at ramfs: {path}" ) ;
146146 let ( name, rest) = split_path ( path) ;
147147 if let Some ( rest) = rest {
148148 match name {
0 commit comments