Skip to content

Commit bb3c6bf

Browse files
committed
fix: cargo clippy
1 parent b56d3aa commit bb3c6bf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/lib/storage/src/sqlite.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ use crate::{database::Database, errors::StorageError};
88
// TODO: Implement proper error mapping
99
impl From<rusqlite::Error> for StorageError {
1010
fn from(err: rusqlite::Error) -> Self {
11-
match err {
12-
_ => StorageError::DatabaseError(err.to_string()),
13-
}
11+
StorageError::DatabaseError(err.to_string())
1412
}
1513
}
1614

@@ -148,8 +146,7 @@ where
148146
return Ok(Vec::new());
149147
}
150148
let conn = self.open_conn()?;
151-
let placeholders = std::iter::repeat("?")
152-
.take(keys.len())
149+
let placeholders = std::iter::repeat_n("?", keys.len())
153150
.collect::<Vec<_>>()
154151
.join(",");
155152
let query_sql = format!(

0 commit comments

Comments
 (0)