@@ -43,7 +43,7 @@ impl DirNode {
43
43
/// Creates a new node with the given name and type in this directory.
44
44
pub fn create_node ( & self , name : & str , ty : VfsNodeType ) -> VfsResult {
45
45
if self . exist ( name) {
46
- log:: error!( "AlreadyExists {}" , name ) ;
46
+ log:: error!( "AlreadyExists {name}" ) ;
47
47
return Err ( VfsError :: AlreadyExists ) ;
48
48
}
49
49
let node: VfsNodeRef = match ty {
@@ -118,7 +118,7 @@ impl VfsNodeOps for DirNode {
118
118
}
119
119
120
120
fn create ( & self , path : & str , ty : VfsNodeType ) -> VfsResult {
121
- log:: debug!( "create {:?} at ramfs: {}" , ty , path ) ;
121
+ log:: debug!( "create {ty :?} at ramfs: {path}" ) ;
122
122
let ( name, rest) = split_path ( path) ;
123
123
if let Some ( rest) = rest {
124
124
match name {
@@ -142,7 +142,7 @@ impl VfsNodeOps for DirNode {
142
142
}
143
143
144
144
fn remove ( & self , path : & str ) -> VfsResult {
145
- log:: debug!( "remove at ramfs: {}" , path ) ;
145
+ log:: debug!( "remove at ramfs: {path}" ) ;
146
146
let ( name, rest) = split_path ( path) ;
147
147
if let Some ( rest) = rest {
148
148
match name {
0 commit comments