Skip to content

Commit eb3bb7a

Browse files
committed
fix of warning: variables can be used directly in format! string
```rust warning: variables can be used directly in the `format!` string --> src/main.rs:13:13 | 13 | eprintln!("{:?}", e); | ^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `#[warn(clippy::uninlined_format_args)]` on by default help: change this to | 13 - eprintln!("{:?}", e); 13 + eprintln!("{e:?}"); | warning: `cargo-ament-build` (bin "cargo-ament-build") generated 1 warning (run `cargo clippy --fix --bin "cargo-ament-build"` to apply 1 suggestion) Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.33s ```
1 parent caec169 commit eb3bb7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn main() {
1010
Ok(true) => 0,
1111
Ok(false) => 1,
1212
Err(e) => {
13-
eprintln!("{:?}", e);
13+
eprintln!("{e:?}");
1414
1
1515
}
1616
};

0 commit comments

Comments
 (0)