mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-26 23:36:05 +08:00
clippy::uninlined_format_args
This commit is contained in:
parent
f2ee7018ef
commit
000278b9a2
@ -9,10 +9,7 @@ fn main() -> Result<()> {
|
||||
unsafe {
|
||||
db.load_extension_enable()?;
|
||||
db.load_extension(
|
||||
format!(
|
||||
"target/debug/examples/{}loadable_extension{}",
|
||||
DLL_PREFIX, DLL_SUFFIX
|
||||
),
|
||||
format!("target/debug/examples/{DLL_PREFIX}loadable_extension{DLL_SUFFIX}"),
|
||||
None,
|
||||
)?;
|
||||
db.load_extension_disable()?;
|
||||
|
@ -182,7 +182,7 @@ mod build_bundled {
|
||||
let inc_dir = inc_dir.unwrap_or_else(|| openssl_dir.join("include"));
|
||||
|
||||
if !lib_dir.iter().all(|p| p.exists()) {
|
||||
panic!("OpenSSL library directory does not exist: {:?}", lib_dir);
|
||||
panic!("OpenSSL library directory does not exist: {lib_dir:?}");
|
||||
}
|
||||
|
||||
if !Path::new(&inc_dir).exists() {
|
||||
@ -205,7 +205,7 @@ mod build_bundled {
|
||||
} else if use_openssl {
|
||||
cfg.include(inc_dir.to_string_lossy().as_ref());
|
||||
let lib_name = if is_windows { "libcrypto" } else { "crypto" };
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_name);
|
||||
println!("cargo:rustc-link-lib=dylib={lib_name}");
|
||||
for lib_dir_item in lib_dir.iter() {
|
||||
println!("cargo:rustc-link-search={}", lib_dir_item.to_string_lossy());
|
||||
}
|
||||
@ -285,7 +285,7 @@ mod build_bundled {
|
||||
} else if extra.starts_with("SQLITE_") {
|
||||
cfg.flag(format!("-D{extra}"));
|
||||
} else {
|
||||
panic!("Don't understand {} in LIBSQLITE3_FLAGS", extra);
|
||||
panic!("Don't understand {extra} in LIBSQLITE3_FLAGS");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -336,7 +336,7 @@ mod test {
|
||||
extended_code: sqlite_code
|
||||
}
|
||||
);
|
||||
let s = format!("{}", err);
|
||||
let s = format!("{err}");
|
||||
assert!(!s.is_empty());
|
||||
}
|
||||
}
|
||||
|
@ -631,7 +631,7 @@ mod tests {
|
||||
)?;
|
||||
let mut rows = stmt.query([])?;
|
||||
let row = rows.next()?.unwrap();
|
||||
let s = format!("{:?}", row);
|
||||
let s = format!("{row:?}");
|
||||
assert_eq!(
|
||||
s,
|
||||
r#"{"name": (Text, "Lisa"), "id": (Integer, 1), "pi": (Real, 3.14), "blob": (Blob, 6), "void": (Null, ())}"#
|
||||
|
Loading…
x
Reference in New Issue
Block a user