Skip to content

Commit

Permalink
refactor: apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Apr 22, 2024
1 parent a2a4c15 commit c9194d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl CacheConfig {

/// Create a new ``CacheConfig`` with some reasonable defaults.
pub fn new() -> Self {
let mut feeds: Vec<String> = (2002..2022).into_iter().map(|x| x.to_string()).collect();
let mut feeds: Vec<String> = (2002..2022).map(|x| x.to_string()).collect();
feeds.push("recent".to_string());
feeds.push("modified".to_string());
Self {
Expand Down Expand Up @@ -158,7 +158,7 @@ fn create_schema(path: &str) -> Result<(), CacheError> {
db_path.pop();
fs::create_dir_all(db_path)?;

let conn = Connection::open(&path)?;
let conn = Connection::open(path)?;

let mut tbl_stmt =
conn.prepare("SELECT name FROM sqlite_master where type = 'table' and name = ?;")?;
Expand Down

0 comments on commit c9194d1

Please sign in to comment.