File tree Expand file tree Collapse file tree 4 files changed +3
-6
lines changed
Expand file tree Collapse file tree 4 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1- use barrel:: backend:: Sqlite as Sql ;
21use log:: info;
32use refinery:: Migration ;
43use rusqlite:: Connection ;
Original file line number Diff line number Diff 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 ) )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use std::path::{Path, PathBuf};
77use std:: sync:: OnceLock ;
88use 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.
1313fn file_stem_re ( ) -> & ' static Regex {
You can’t perform that action at this time.
0 commit comments