mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-01 14:28:55 +08:00
clippy::unseparated_literal_suffix
This commit is contained in:
@@ -106,11 +106,11 @@ unsafe impl<'vtab> VTab<'vtab> for ArrayTab {
|
||||
}
|
||||
}
|
||||
if ptr_idx {
|
||||
info.set_estimated_cost(1f64);
|
||||
info.set_estimated_cost(1_f64);
|
||||
info.set_estimated_rows(100);
|
||||
info.set_idx_num(1);
|
||||
} else {
|
||||
info.set_estimated_cost(2_147_483_647f64);
|
||||
info.set_estimated_cost(2_147_483_647_f64);
|
||||
info.set_estimated_rows(2_147_483_647);
|
||||
info.set_idx_num(0);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ union ModuleZeroHack {
|
||||
// structs are allowed to be zeroed.
|
||||
const ZERO_MODULE: ffi::sqlite3_module = unsafe {
|
||||
ModuleZeroHack {
|
||||
bytes: [0u8; std::mem::size_of::<ffi::sqlite3_module>()],
|
||||
bytes: [0_u8; std::mem::size_of::<ffi::sqlite3_module>()],
|
||||
}
|
||||
.module
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user