Skip to content

Commit 54575c9

Browse files
committed
fix: resolve clippy uninlined_format_args lint failures
1 parent d525a3c commit 54575c9

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/history.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)