Skip to content

Commit

Permalink
setup: console::readline returned newline (and maybe \r on Windows?)
Browse files Browse the repository at this point in the history
Oops.
  • Loading branch information
eras committed Jan 2, 2023
1 parent 647ded4 commit af01009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ mod console {
pub fn read_line(stdin: &mut StdinLock) -> Result<Option<String>, super::Error> {
let mut buffer = String::new();
BufRead::read_line(stdin, &mut buffer)?;
Ok(Some(buffer))
Ok(Some(buffer.trim_end().to_string()))
}
}

Expand Down

0 comments on commit af01009

Please sign in to comment.