diff --git a/examples/cqlsh-rs.rs b/examples/cqlsh-rs.rs index 04e303d25..1a2941c90 100644 --- a/examples/cqlsh-rs.rs +++ b/examples/cqlsh-rs.rs @@ -196,7 +196,10 @@ fn print_result(result: QueryResult) -> Result<(), IntoRowsResultError> { } Ok(()) } - Err(IntoRowsResultError::ResultNotRows(_)) => Ok(println!("OK")), + Err(IntoRowsResultError::ResultNotRows(_)) => { + println!("OK"); + Ok(()) + } Err(e) => Err(e), } }