buffread::BufferedReader -> BufferedReader

This commit is contained in:
Heather 2014-01-21 10:50:38 +04:00
parent 3a2f9ab72b
commit 6ffd1ad4d6
2 changed files with 3 additions and 4 deletions

View file

@ -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,

View file

@ -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};