1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #66 from Heather/master

buffread::BufferedReader -> BufferedReader
This commit is contained in:
Jordi Boggiano 2014-01-21 02:43:14 -08:00
commit 9fe0f14ba8
2 changed files with 3 additions and 4 deletions

View file

@ -12,7 +12,7 @@
extern mod extra; extern mod extra;
use std::os; 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; use extra::getopts::groups;
enum InteractiveMode { enum InteractiveMode {
@ -225,7 +225,7 @@ fn prompt(msg: &str) -> bool {
fn read_prompt() -> bool { fn read_prompt() -> bool {
stdio::flush(); stdio::flush();
match buffered::BufferedReader::new(stdin()).read_line() { match BufferedReader::new(stdin()).read_line() {
Some(line) => { Some(line) => {
match line.char_at(0) { match line.char_at(0) {
'y' | 'Y' => true, 'y' | 'Y' => true,

View file

@ -12,8 +12,7 @@
extern mod extra; extern mod extra;
use std::os; use std::os;
use std::io::{print, stdin, stderr, File, result}; use std::io::{print, stdin, stderr, File, result, BufferedReader};
use std::io::buffered::BufferedReader;
use std::str::from_utf8_opt; use std::str::from_utf8_opt;
use extra::getopts::{groups, Matches}; use extra::getopts::{groups, Matches};