Skip to content

Commit 696735f

Browse files
committed
Auto merge of #67443 - Mark-Simulacrum:toolstate-no-commit-newline, r=Mark-Simulacrum
Remove newline from commit in toolstate
2 parents 19b3813 + 1d9a179 commit 696735f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/toolstate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ fn change_toolstate(
413413
let history_path = format!("rust-toolstate/history/{}.tsv", OS.expect("linux/windows only"));
414414
let mut file = t!(fs::read_to_string(&history_path));
415415
let end_of_first_line = file.find('\n').unwrap();
416-
file.insert_str(end_of_first_line, &format!("\n{}\t{}", commit, toolstate_serialized));
416+
file.insert_str(end_of_first_line, &format!("\n{}\t{}", commit.trim(), toolstate_serialized));
417417
t!(fs::write(&history_path, file));
418418
}
419419

0 commit comments

Comments
 (0)