Run clippy fix
This commit is contained in:
1 parent
e9729e9956
commit
e2d6cd7258
19 files changed
+123
-158
No files matched your search
@@ -105,7 +105,7 @@ impl SqliteSearchHistoryDao {
|
||||
}
|
||||
|
||||
fn deserialize_vector(bytes: &[u8]) -> Result<Vec<f32>, DbError> {
|
||||
if bytes.len() % 4 != 0 {
|
||||
if !bytes.len().is_multiple_of(4) {
|
||||
return Err(DbError::new(DbErrorKind::QueryError));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user