Skip to content

Commit 9639b99

Browse files
committed
cql-sh: do not return println! result
This appeases https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
1 parent f2102d1 commit 9639b99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/cqlsh-rs.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,10 @@ fn print_result(result: QueryResult) -> Result<(), IntoRowsResultError> {
196196
}
197197
Ok(())
198198
}
199-
Err(IntoRowsResultError::ResultNotRows(_)) => Ok(println!("OK")),
199+
Err(IntoRowsResultError::ResultNotRows(_)) => {
200+
println!("OK");
201+
Ok(())
202+
}
200203
Err(e) => Err(e),
201204
}
202205
}

0 commit comments

Comments
 (0)