File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ pub enum DatabaseName<'a> {
207
207
208
208
#[ allow( clippy:: needless_lifetimes) ]
209
209
impl < ' a > fmt:: Display for DatabaseName < ' a > {
210
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
210
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
211
211
match * self {
212
212
DatabaseName :: Main => write ! ( f, "main" ) ,
213
213
DatabaseName :: Temp => write ! ( f, "temp" ) ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ fn test_with_database(database: &Connection) -> crate::Result<()> {
51
51
Ok ( ( ) )
52
52
}
53
53
54
- fn test_single ( idx : & mut i32 , column : String , value : ValueRef ) {
54
+ fn test_single ( idx : & mut i32 , column : String , value : ValueRef < ' _ > ) {
55
55
match column. as_str ( ) {
56
56
"bool" => match idx {
57
57
0 => assert_eq ! ( value, ValueRef :: Boolean ( false ) ) ,
Original file line number Diff line number Diff line change @@ -232,10 +232,10 @@ mod test {
232
232
fn test_cow_str ( ) {
233
233
use std:: borrow:: Cow ;
234
234
let s = "str" ;
235
- let cow: Cow < str > = Cow :: Borrowed ( s) ;
235
+ let cow: Cow < ' _ , str > = Cow :: Borrowed ( s) ;
236
236
let r = cow. to_sql ( ) ;
237
237
assert ! ( r. is_ok( ) ) ;
238
- let cow: Cow < str > = Cow :: Owned :: < str > ( String :: from ( s) ) ;
238
+ let cow: Cow < ' _ , str > = Cow :: Owned ( String :: from ( s) ) ;
239
239
let r = cow. to_sql ( ) ;
240
240
assert ! ( r. is_ok( ) ) ;
241
241
// Ensure this compiles.
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ impl Value {
33
33
}
34
34
35
35
impl fmt:: Display for Value {
36
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
36
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
37
37
let c_string = unsafe { CString :: from_raw ( duckdb_get_varchar ( self . ptr ) ) } ;
38
38
write ! ( f, "{}" , c_string. to_str( ) . unwrap( ) )
39
39
}
You can’t perform that action at this time.
0 commit comments