We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e864442 commit 162c972Copy full SHA for 162c972
src/main.rs
@@ -5,6 +5,7 @@ extern crate selecta;
5
6
use getopts::{optopt,getopts};
7
use std::cmp::min;
8
+use std::old_io::stdio;
9
10
use selecta::search::Search;
11
use selecta::tty::IO;
@@ -51,7 +52,9 @@ fn get_args() -> Vec<String> {
51
52
}
53
54
fn read_lines() -> Vec<String> {
- std::old_io::stdio::stdin().lock().lines().map( |line| {
55
+ let mut stdin = stdio::stdin();
56
+ let mut reader = stdin.lock();
57
+ reader.lines().map( |line| {
58
line.unwrap().trim().to_string()
59
}).collect()
60
0 commit comments