mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37: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;
|
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,
|
||||||
|
|
3
wc/wc.rs
3
wc/wc.rs
|
@ -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};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue