From 6ffd1ad4d62428a181e4195f068b077797b4c062 Mon Sep 17 00:00:00 2001 From: Heather Date: Tue, 21 Jan 2014 10:50:38 +0400 Subject: [PATCH] buffread::BufferedReader -> BufferedReader --- rm/rm.rs | 4 ++-- wc/wc.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/rm/rm.rs b/rm/rm.rs index e1b03666e..fea7f7856 100644 --- a/rm/rm.rs +++ b/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, diff --git a/wc/wc.rs b/wc/wc.rs index d4fb626ac..c16177e71 100644 --- a/wc/wc.rs +++ b/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};