File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -248,10 +248,10 @@ mod tests {
248248 // The oldest entry should be removed, the newest should be kept
249249 for i in 0 ..40 {
250250 let entry = Entry {
251- workspace_name : format ! ( "workspace_{}" , i ) ,
251+ workspace_name : format ! ( "workspace_{i}" ) ,
252252 dev_container_name : None ,
253253 config_name : None ,
254- workspace_path : PathBuf :: from ( format ! ( "/path/to/workspace_{}" , i ) ) ,
254+ workspace_path : PathBuf :: from ( format ! ( "/path/to/workspace_{i}" ) ) ,
255255 config_path : None ,
256256 behavior : Behavior {
257257 strategy : ContainerStrategy :: Detect ,
@@ -284,8 +284,7 @@ mod tests {
284284 . unwrap ( ) ;
285285 assert ! (
286286 num >= 5 ,
287- "Entry workspace_{} should have been removed (only keeping most recent 35)" ,
288- num
287+ "Entry workspace_{num} should have been removed (only keeping most recent 35)"
289288 ) ;
290289 }
291290 }
You can’t perform that action at this time.
0 commit comments