diff --git a/shuf/shuf.rs b/shuf/shuf.rs index 619b0e31d..950243b5b 100644 --- a/shuf/shuf.rs +++ b/shuf/shuf.rs @@ -1,4 +1,4 @@ -#![crate_id(name="shuf", vers="1.0.0", author="Arcterus")] +#![crate_name = "shuf"] /* * This file is part of the uutils coreutils package. @@ -114,7 +114,7 @@ With no FILE, or when FILE is -, read standard input.", fn shuf(input: Vec, mode: Mode, repeat: bool, zero: bool, count: uint, output: Option, random: Option) -> IoResult<()> { match mode { Echo => shuf_lines(input, repeat, zero, count, output, random), - InputRange(range) => shuf_lines(range.map(|num| num.to_str()).collect(), repeat, zero, count, output, random), + InputRange(range) => shuf_lines(range.map(|num| num.to_string()).collect(), repeat, zero, count, output, random), Default => { let lines: Vec = input.move_iter().flat_map(|filename| { let mut file = io::BufferedReader::new(crash_if_err!(1, io::File::open(&Path::new(filename.as_slice()))));