Skip to content

Commit

Permalink
refactor: [#801] fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-nt committed Feb 18, 2025
1 parent d727811 commit d130391
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/databases/mysql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl Database for Mysql {
_ => continue,
};

let mut str = format!("AND {}", filter_query);
let mut str = format!("AND {filter_query}");
if i > 0 {
str = format!(" AND {str}");
}
Expand Down
4 changes: 2 additions & 2 deletions src/databases/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl Database for Sqlite {
_ => continue,
};

let mut str = format!("AND {}", filter_query);
let mut str = format!("AND {filter_query}");
if i > 0 {
str = format!(" AND {str}");
}
Expand Down Expand Up @@ -258,7 +258,7 @@ impl Database for Sqlite {
.fetch_all(&self.pool)
.await
.map_err(|e| {
eprintln!("Database error: {:?}", e);
eprintln!("Database error: {e:?}");
database::Error::Error
})?;

Expand Down

0 comments on commit d130391

Please # to comment.