clippy::unseparated_literal_suffix

This commit is contained in:
gwenn
2022-01-05 20:03:30 +01:00
committed by Thom Chiovoloni
parent c10e2f39ef
commit e1fd731cb0
7 changed files with 8 additions and 8 deletions

View File

@@ -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);
}

View File

@@ -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
};