Trim the newline from prompt.

This commit is contained in:
Sean Bowe 2016-09-24 01:06:41 -06:00
parent c57cb3afa5
commit d7727c8309
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ pub fn prompt(s: &str) -> String {
if io::stdin().read_line(&mut input).is_ok() {
println!("Please wait...");
return input;
return (&input[0..input.len()-1]).into();
}
}
}