rustfmt
This commit is contained in:
parent
0cd663ae2a
commit
dadd414faa
1 changed files with 224 additions and 221 deletions
|
@ -228,7 +228,10 @@ impl Computer {
|
||||||
let mut line = String::new();
|
let mut line = String::new();
|
||||||
print!("input: ");
|
print!("input: ");
|
||||||
io::stdout().flush().expect("unable to flush output");
|
io::stdout().flush().expect("unable to flush output");
|
||||||
io::stdin().lock().read_line(&mut line).expect("input failed");
|
io::stdin()
|
||||||
|
.lock()
|
||||||
|
.read_line(&mut line)
|
||||||
|
.expect("input failed");
|
||||||
let value = line.trim().parse().expect("numeric input required");
|
let value = line.trim().parse().expect("numeric input required");
|
||||||
self.set_a(value);
|
self.set_a(value);
|
||||||
2
|
2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue