Skip to content

Commit cd9590d

Browse files
Update error message formatting in lib.rs
- Changed the error message in the symlink removal logic to use the more concise formatting syntax `{e}` instead of the longer `format!` style. This improves readability and maintains consistency in error handling.
1 parent 14bfecb commit cd9590d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ impl Build {
549549
if e.kind() == io::ErrorKind::NotADirectory {
550550
t!(fs::remove_file(&host));
551551
} else {
552-
panic!("failed to remove symlink: {}", e);
552+
panic!("failed to remove symlink: {e}");
553553
}
554554
}
555555
}

0 commit comments

Comments
 (0)