Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/duckdb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,8 @@ mod test {
#[test]
fn test_open() {
let con = Connection::open_in_memory();
if con.is_err() {
panic!("open error {}", con.unwrap_err());
if let Err(e) = con {
panic!("open error {e}");
}
assert!(Connection::open_in_memory().is_ok());
let db = checked_memory_handle();
Expand Down
4 changes: 2 additions & 2 deletions crates/duckdb/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ mod test {

let s = "hello, world!";
let result = db.execute("INSERT INTO foo(t) VALUES (?)", [s.to_owned()]);
if result.is_err() {
panic!("exe error: {}", result.unwrap_err())
if let Err(e) = result {
panic!("exe error: {e}")
}

let from: String = db.query_row("SELECT t FROM foo", [], |r| r.get(0))?;
Expand Down
4 changes: 2 additions & 2 deletions crates/duckdb/src/vtab/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ where
let info = TableFunctionInfo::<T>::from(info);
let mut data_chunk_handle = DataChunkHandle::new_unowned(output);
let result = T::func(&info, &mut data_chunk_handle);
if result.is_err() {
info.set_error(&result.err().unwrap().to_string());
if let Err(e) = result {
info.set_error(&e.to_string());
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.91"
channel = "1.92"
components = ["rustfmt", "clippy"]