File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1963,10 +1963,10 @@ pub unsafe extern "C" fn libsql_wal_disable_checkpoint(db: *mut sqlite3) -> ffi:
19631963}
19641964
19651965fn sqlite3_safety_check_sick_or_ok ( db : & sqlite3Inner ) -> bool {
1966- match db . e_open_state {
1967- SQLITE_STATE_SICK | SQLITE_STATE_OPEN | SQLITE_STATE_BUSY => true ,
1968- _ => false ,
1969- }
1966+ matches ! (
1967+ db . e_open_state ,
1968+ SQLITE_STATE_SICK | SQLITE_STATE_OPEN | SQLITE_STATE_BUSY
1969+ )
19701970}
19711971
19721972// https://sqlite.org/c3ref/table_column_metadata.html
@@ -2113,7 +2113,7 @@ pub unsafe extern "C" fn sqlite3_table_column_metadata(
21132113
21142114fn handle_limbo_err ( err : LimboError , container : * mut * mut ffi:: c_char ) -> i32 {
21152115 if !container. is_null ( ) {
2116- let err_msg = format ! ( "{}" , err ) ;
2116+ let err_msg = format ! ( "{err}" ) ;
21172117 unsafe { * container = CString :: new ( err_msg) . unwrap ( ) . into_raw ( ) } ;
21182118 }
21192119 match err {
You can’t perform that action at this time.
0 commit comments