mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +00:00
buffread::BufferedReader -> BufferedReader
This commit is contained in:
parent
3a2f9ab72b
commit
6ffd1ad4d6
2 changed files with 3 additions and 4 deletions
4
rm/rm.rs
4
rm/rm.rs
|
@ -12,7 +12,7 @@
|
|||
extern mod extra;
|
||||
|
||||
use std::os;
|
||||
use std::io::{print,stdin,stderr,stdio,fs,buffered,io_error};
|
||||
use std::io::{print,stdin,stderr,stdio,fs,BufferedReader,io_error};
|
||||
use extra::getopts::groups;
|
||||
|
||||
enum InteractiveMode {
|
||||
|
@ -225,7 +225,7 @@ fn prompt(msg: &str) -> bool {
|
|||
|
||||
fn read_prompt() -> bool {
|
||||
stdio::flush();
|
||||
match buffered::BufferedReader::new(stdin()).read_line() {
|
||||
match BufferedReader::new(stdin()).read_line() {
|
||||
Some(line) => {
|
||||
match line.char_at(0) {
|
||||
'y' | 'Y' => true,
|
||||
|
|
3
wc/wc.rs
3
wc/wc.rs
|
@ -12,8 +12,7 @@
|
|||
extern mod extra;
|
||||
|
||||
use std::os;
|
||||
use std::io::{print, stdin, stderr, File, result};
|
||||
use std::io::buffered::BufferedReader;
|
||||
use std::io::{print, stdin, stderr, File, result, BufferedReader};
|
||||
use std::str::from_utf8_opt;
|
||||
use extra::getopts::{groups, Matches};
|
||||
|
||||
|
|
Loading…
Reference in a new issue