Skip to content

Commit

Permalink
Auto merge of #67443 - Mark-Simulacrum:toolstate-no-commit-newline, r…
Browse files Browse the repository at this point in the history
…=Mark-Simulacrum

Remove newline from commit in toolstate
  • Loading branch information
bors committed Dec 20, 2019
2 parents 19b3813 + 1d9a179 commit 696735f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/toolstate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ fn change_toolstate(
let history_path = format!("rust-toolstate/history/{}.tsv", OS.expect("linux/windows only"));
let mut file = t!(fs::read_to_string(&history_path));
let end_of_first_line = file.find('\n').unwrap();
file.insert_str(end_of_first_line, &format!("\n{}\t{}", commit, toolstate_serialized));
file.insert_str(end_of_first_line, &format!("\n{}\t{}", commit.trim(), toolstate_serialized));
t!(fs::write(&history_path, file));
}

Expand Down

0 comments on commit 696735f

Please sign in to comment.