diff --git a/examples/persons/main.rs b/examples/persons/main.rs index a1a94ae..a4c5a7c 100644 --- a/examples/persons/main.rs +++ b/examples/persons/main.rs @@ -34,7 +34,7 @@ fn main() -> Result<()> { for person in rows { match person { Ok(p) => println!("ID: {}, Name: {}", p.id, p.name), - Err(e) => eprintln!("Error: {:?}", e), + Err(e) => eprintln!("Error: {e:?}"), } } diff --git a/libsqlite3-sys/build.rs b/libsqlite3-sys/build.rs index e6099fc..79721e6 100644 --- a/libsqlite3-sys/build.rs +++ b/libsqlite3-sys/build.rs @@ -350,10 +350,7 @@ impl From for String { HeaderLocation::FromEnvironment => { let prefix = env_prefix(); let mut header = env::var(format!("{prefix}_INCLUDE_DIR")).unwrap_or_else(|_| { - panic!( - "{}_INCLUDE_DIR must be set if {}_LIB_DIR is set", - prefix, prefix - ) + panic!("{prefix}_INCLUDE_DIR must be set if {prefix}_LIB_DIR is set") }); header.push_str(if cfg!(feature = "loadable_extension") { "/sqlite3ext.h" diff --git a/rusqlite-macros/src/lib.rs b/rusqlite-macros/src/lib.rs index 15a7681..d98dee1 100644 --- a/rusqlite-macros/src/lib.rs +++ b/rusqlite-macros/src/lib.rs @@ -12,7 +12,7 @@ use sqlite3_parser::lexer::sql::Parser; #[doc(hidden)] #[proc_macro] pub fn __bind(input: TokenStream) -> TokenStream { - try_bind(input).unwrap_or_else(|msg| parse_ts(&format!("compile_error!({:?})", msg))) + try_bind(input).unwrap_or_else(|msg| parse_ts(&format!("compile_error!({msg:?})"))) } type Result = std::result::Result;