diff --git a/head/head.rs b/head/head.rs index 150732bd5..886264d48 100644 --- a/head/head.rs +++ b/head/head.rs @@ -127,7 +127,7 @@ fn obsolete (options: &[String]) -> (Vec, Option) { } fn head (reader: &mut BufferedReader, line_count:uint) { - for line in reader.lines().take(line_count) { print!("{}", line); } + for line in reader.lines().take(line_count) { print!("{}", line.unwrap()); } } fn version () {