mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
rust: clippy: enable uninlined_format_args lint
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7abf0d95ac
commit
c6b04613bd
4 changed files with 12 additions and 10 deletions
|
@ -14,7 +14,7 @@ fn main() -> Result<()> {
|
|||
let path = env::var("MESON_BUILD_ROOT")
|
||||
.unwrap_or_else(|_| format!("{}/src", env!("CARGO_MANIFEST_DIR")));
|
||||
|
||||
let file = format!("{}/bindings.inc.rs", path);
|
||||
let file = format!("{path}/bindings.inc.rs");
|
||||
let file = Path::new(&file);
|
||||
if !Path::new(&file).exists() {
|
||||
panic!(concat!(
|
||||
|
@ -29,7 +29,7 @@ fn main() -> Result<()> {
|
|||
}
|
||||
|
||||
let out_dir = env::var("OUT_DIR").unwrap();
|
||||
let dest_path = format!("{}/bindings.inc.rs", out_dir);
|
||||
let dest_path = format!("{out_dir}/bindings.inc.rs");
|
||||
let dest_path = Path::new(&dest_path);
|
||||
if dest_path.symlink_metadata().is_ok() {
|
||||
remove_file(dest_path)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue