Skip to content

Commit

Permalink
clippy: fix new warnings for 1.81 (#1067)
Browse files Browse the repository at this point in the history
This resolves the following warning

```rust
warning: the borrowed expression implements the required traits
   --> crates/qt-build-utils/src/lib.rs:626:21
    |
626 |             cmd.arg(&format!("-Muri={uri}"));
    |                     ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("-Muri={uri}")`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
    = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
```
  • Loading branch information
ahayzen-kdab authored Sep 10, 2024
1 parent b23104c commit 455bcf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/qt-build-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ impl QtBuild {
let mut cmd = Command::new(self.moc_executable.as_ref().unwrap());

if let Some(uri) = arguments.uri {
cmd.arg(&format!("-Muri={uri}"));
cmd.arg(format!("-Muri={uri}"));
}

cmd.args(include_args.trim_end().split(' '));
Expand Down

0 comments on commit 455bcf4

Please sign in to comment.