mirror of https://github.com/zcash/mpc.git
Trim the newline from prompt.
This commit is contained in:
parent
c57cb3afa5
commit
d7727c8309
|
@ -24,7 +24,7 @@ pub fn prompt(s: &str) -> String {
|
||||||
|
|
||||||
if io::stdin().read_line(&mut input).is_ok() {
|
if io::stdin().read_line(&mut input).is_ok() {
|
||||||
println!("Please wait...");
|
println!("Please wait...");
|
||||||
return input;
|
return (&input[0..input.len()-1]).into();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue