Skip to content

Commit

Permalink
cargo clippy (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs authored Feb 18, 2025
1 parent 3df41df commit a4a858c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion examples/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use barrel::backend::Sqlite as Sql;
use log::info;
use refinery::Migration;
use rusqlite::Connection;
Expand Down
4 changes: 2 additions & 2 deletions refinery/tests/mysql_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ mod mysql_async {
.await
.unwrap();

conn.query(&format!(
conn.query(format!(
"SELECT table_name FROM information_schema.tables WHERE table_name='{}'",
DEFAULT_TABLE_NAME
))
Expand Down Expand Up @@ -122,7 +122,7 @@ mod mysql_async {
.unwrap();

let result = conn
.query(&format!(
.query(format!(
"SELECT table_name FROM information_schema.tables WHERE table_name='{}'",
DEFAULT_TABLE_NAME
))
Expand Down
2 changes: 0 additions & 2 deletions refinery/tests/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ mod postgres {
}

fn prep_database() {
let uri = db_uri();

let mut client = Client::connect(&db_uri(), NoTls).unwrap();

client
Expand Down
2 changes: 1 addition & 1 deletion refinery_core/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::path::{Path, PathBuf};
use std::sync::OnceLock;
use walkdir::{DirEntry, WalkDir};

const STEM_RE: &'static str = r"^([U|V])(\d+(?:\.\d+)?)__(\w+)";
const STEM_RE: &str = r"^([U|V])(\d+(?:\.\d+)?)__(\w+)";

/// Matches the stem of a migration file.
fn file_stem_re() -> &'static Regex {
Expand Down

0 comments on commit a4a858c

Please sign in to comment.