Skip to content

Commit 24ab4bc

Browse files
authored
Remove unnecessary {} (#140)
1 parent e1d8118 commit 24ab4bc

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/shim.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ pub unsafe extern "C" fn rust_sqlite_wasm_assert_fail(
118118
let expr = std::ffi::CStr::from_ptr(expr).to_string_lossy();
119119
let file = std::ffi::CStr::from_ptr(file).to_string_lossy();
120120
let func = std::ffi::CStr::from_ptr(func).to_string_lossy();
121-
panic!(
122-
"{}",
123-
format!("Assertion failed: {expr} ({file}: {func}: {line})")
124-
);
121+
panic!("Assertion failed: {expr} ({file}: {func}: {line})");
125122
}
126123

127124
#[no_mangle]

0 commit comments

Comments
 (0)