Skip to content

Commit

Permalink
fix warnings and deny them in CI (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
carllerche authored Oct 25, 2024
1 parent f9395ec commit 5d3c35e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings

jobs:
check:
Expand Down
11 changes: 5 additions & 6 deletions src/db/sqlite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,10 @@ impl Driver for Sqlite {
};

if exec {
let ret = stmt
.execute(rusqlite::params_from_iter(
params.iter().map(value_from_param),
))
.unwrap();
stmt.execute(rusqlite::params_from_iter(
params.iter().map(value_from_param),
))
.unwrap();

return Ok(stmt::ValueStream::new());
}
Expand Down Expand Up @@ -139,7 +138,7 @@ impl Driver for Sqlite {

async fn reset_db(&self, schema: &Schema) -> Result<()> {
for table in schema.tables() {
self.create_table(schema, table);
self.create_table(schema, table)?;
}

Ok(())
Expand Down

0 comments on commit 5d3c35e

Please sign in to comment.