From 6e0152e538f9bf1c2b0eb34861fa06433984d88d Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Thu, 31 Aug 2023 08:45:13 -0400 Subject: [PATCH] `cat`: use standard Ok(wtr.flush?) instead --- src/cmd/cat.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()?) } }