File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ impl LoopControl {
118118 LOOP_CTL_GET_FREE as IoctlRequest ,
119119 )
120120 } ) ?;
121- LoopDevice :: open ( format ! ( "{}{}" , LOOP_PREFIX , dev_num ) )
121+ LoopDevice :: open ( format ! ( "{LOOP_PREFIX}{dev_num}" ) )
122122 }
123123
124124 /// Add and opens a new loop device.
@@ -144,7 +144,7 @@ impl LoopControl {
144144 n as c_int ,
145145 )
146146 } ) ?;
147- LoopDevice :: open ( format ! ( "{}{}" , LOOP_PREFIX , dev_num ) )
147+ LoopDevice :: open ( format ! ( "{LOOP_PREFIX}{dev_num}" ) )
148148 }
149149}
150150
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ fn get_next_free_device() {
1818
1919 assert_eq ! (
2020 ld0. path( ) ,
21- Some ( PathBuf :: from( & format!( "/dev/loop{}" , num_devices_at_start ) ) ) ,
21+ Some ( PathBuf :: from( & format!( "/dev/loop{num_devices_at_start}" ) ) ) ,
2222 "should find the first loopback device"
2323 ) ;
2424}
You can’t perform that action at this time.
0 commit comments