mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
sqlite3: Clean up sqlite3_safety_check_sick_or_ok() function
Underscore in parameter or variable name indicates it's not used. Also, drop useless `crate` qualifier from constants.
This commit is contained in:
parent
0b0f712575
commit
5477d0a4f5
1 changed files with 4 additions and 4 deletions
|
@ -1167,11 +1167,11 @@ pub unsafe extern "C" fn libsql_wal_get_frame(
|
|||
}
|
||||
}
|
||||
|
||||
fn sqlite3_safety_check_sick_or_ok(_db: &sqlite3) -> bool {
|
||||
match _db.e_open_state {
|
||||
crate::SQLITE_STATE_SICK | crate::SQLITE_STATE_OPEN | crate::SQLITE_STATE_BUSY => true,
|
||||
fn sqlite3_safety_check_sick_or_ok(db: &sqlite3) -> bool {
|
||||
match db.e_open_state {
|
||||
SQLITE_STATE_SICK | SQLITE_STATE_OPEN | SQLITE_STATE_BUSY => true,
|
||||
_ => {
|
||||
eprintln!("Invalid database state: {}", _db.e_open_state);
|
||||
eprintln!("Invalid database state: {}", db.e_open_state);
|
||||
false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue