Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore uninlined_format_args pedantic clippy lint
warning: variables can be used directly in the `format!` string --> tests/test_generics.rs:93:5 | 93 | assert_eq!(format!("{}", instance), "display only DebugOnly"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 93 - assert_eq!(format!("{}", instance), "display only DebugOnly"); 93 + assert_eq!(format!("{instance}"), "display only DebugOnly"); | warning: variables can be used directly in the `format!` string --> tests/test_generics.rs:96:5 | 96 | assert_eq!(format!("{}", instance), "display only"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 96 - assert_eq!(format!("{}", instance), "display only"); 96 + assert_eq!(format!("{instance}"), "display only"); | warning: variables can be used directly in the `format!` string --> tests/test_generics.rs:99:5 | 99 | assert_eq!(format!("{}", instance), "DebugOnly"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 99 - assert_eq!(format!("{}", instance), "DebugOnly"); 99 + assert_eq!(format!("{instance}"), "DebugOnly"); | warning: `thiserror` (test "test_generics") generated 3 warnings (run `cargo clippy --fix --test "test_generics"` to apply 3 suggestions) warning: variables can be used directly in the `format!` string --> tests/test_display.rs:129:20 | 129 | Some(n) => format!("error occurred with {}", n), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 129 - Some(n) => format!("error occurred with {}", n), 129 + Some(n) => format!("error occurred with {n}"), | warning: variables can be used directly in the `format!` string --> tests/test_display.rs:153:32 | 153 | Some(n) => write!(formatter, "error occurred with {}", n), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 153 - Some(n) => write!(formatter, "error occurred with {}", n), 153 + Some(n) => write!(formatter, "error occurred with {n}"), |
- Loading branch information