diff --git a/src/cmd/cat.rs b/src/cmd/cat.rs index 30f8dd961..b30360a7b 100644 --- a/src/cmd/cat.rs +++ b/src/cmd/cat.rs @@ -105,7 +105,7 @@ impl Args { wtr.write_byte_record(&row)?; } } - wtr.flush().map_err(From::from) + Ok(wtr.flush()?) } fn cat_rowskey(&self) -> CliResult<()> { @@ -215,7 +215,7 @@ impl Args { wtr.write_byte_record(&csv::ByteRecord::new())?; } } - wtr.flush().map_err(From::from) + Ok(wtr.flush()?) } fn cat_columns(&self) -> CliResult<()> { @@ -264,6 +264,6 @@ impl Args { } wtr.write_byte_record(&record)?; } - wtr.flush().map_err(From::from) + Ok(wtr.flush()?) } }