clippy::uninlined_format_args

This commit is contained in:
gwenn
2024-08-10 14:53:25 +02:00
parent f2ee7018ef
commit 000278b9a2
4 changed files with 6 additions and 9 deletions

View File

@@ -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");
}
}
}

View File

@@ -336,7 +336,7 @@ mod test {
extended_code: sqlite_code
}
);
let s = format!("{}", err);
let s = format!("{err}");
assert!(!s.is_empty());
}
}