Skip to content

Commit a4a858c

Browse files
authored
cargo clippy (#367)
1 parent 3df41df commit a4a858c

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

examples/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use barrel::backend::Sqlite as Sql;
21
use log::info;
32
use refinery::Migration;
43
use rusqlite::Connection;

refinery/tests/mysql_async.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ mod mysql_async {
9494
.await
9595
.unwrap();
9696

97-
conn.query(&format!(
97+
conn.query(format!(
9898
"SELECT table_name FROM information_schema.tables WHERE table_name='{}'",
9999
DEFAULT_TABLE_NAME
100100
))
@@ -122,7 +122,7 @@ mod mysql_async {
122122
.unwrap();
123123

124124
let result = conn
125-
.query(&format!(
125+
.query(format!(
126126
"SELECT table_name FROM information_schema.tables WHERE table_name='{}'",
127127
DEFAULT_TABLE_NAME
128128
))

refinery/tests/postgres.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ mod postgres {
6767
}
6868

6969
fn prep_database() {
70-
let uri = db_uri();
71-
7270
let mut client = Client::connect(&db_uri(), NoTls).unwrap();
7371

7472
client

refinery_core/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::path::{Path, PathBuf};
77
use std::sync::OnceLock;
88
use walkdir::{DirEntry, WalkDir};
99

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

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

0 commit comments

Comments
 (0)