Ignore uninlined_format_args pedantic clippy lint in test
Before adoption: this commit came in with the history the project adopted, so no landing records it.
warning: variables can be used directly in the `format!` string --> build.rs:200:9 | 200 | / eprintln!( 201 | | "Environment variable ${} is not set during execution of build script", 202 | | key, 203 | | ); | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` warning: variables can be used directly in the `format!` string --> src/ensure.rs:83:33 | 83 | if fmt::write(&mut lhs_buf, format_args!("{:?}", lhs)).is_ok() { | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` help: change this to | 83 - if fmt::write(&mut lhs_buf, format_args!("{:?}", lhs)).is_ok() { 83 + if fmt::write(&mut lhs_buf, format_args!("{lhs:?}")).is_ok() { | warning: variables can be used directly in the `format!` string --> src/ensure.rs:85:37 | 85 | if fmt::write(&mut rhs_buf, format_args!("{:?}", rhs)).is_ok() { | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 85 - if fmt::write(&mut rhs_buf, format_args!("{:?}", rhs)).is_ok() { 85 + if fmt::write(&mut rhs_buf, format_args!("{rhs:?}")).is_ok() { | warning: variables can be used directly in the `format!` string --> src/fmt.rs:13:17 | 13 | write!(f, ": {}", cause)?; | ^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 13 - write!(f, ": {}", cause)?; 13 + write!(f, ": {cause}")?; | warning: variables can be used directly in the `format!` string --> src/fmt.rs:27:9 | 27 | write!(f, "{}", error)?; | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 27 - write!(f, "{}", error)?; 27 + write!(f, "{error}")?; | warning: variables can be used directly in the `format!` string --> src/fmt.rs:39:17 | 39 | write!(indented, "{}", error)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 39 - write!(indented, "{}", error)?; 39 + write!(indented, "{error}")?; | warning: variables can be used directly in the `format!` string --> src/fmt.rs:61:17 | 61 | write!(f, "{}", backtrace)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 61 - write!(f, "{}", backtrace)?; 61 + write!(f, "{backtrace}")?; | warning: variables can be used directly in the `format!` string --> src/fmt.rs:84:37 | 84 | Some(number) => write!(self.inner, "{: >5}: ", number)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 84 - Some(number) => write!(self.inner, "{: >5}: ", number)?, 84 + Some(number) => write!(self.inner, "{number: >5}: ")?, | warning: variables can be used directly in the `format!` string --> tests/test_ffi.rs:7:5 | 7 | println!("{:?}", err); | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` help: change this to | 7 - println!("{:?}", err); 7 + println!("{err:?}"); | warning: variables can be used directly in the `format!` string --> tests/test_macros.rs:36:9 | 36 | ensure!(v + v == 2, "This is correct, v: {}", v); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` help: change this to | 36 - ensure!(v + v == 2, "This is correct, v: {}", v); 36 + ensure!(v + v == 2, "This is correct, v: {v}"); | warning: variables can be used directly in the `format!` string --> tests/test_macros.rs:42:9 | 42 | ensure!(v + v == 1, "This is not correct, v: {}", v); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 42 - ensure!(v + v == 1, "This is not correct, v: {}", v); 42 + ensure!(v + v == 1, "This is not correct, v: {v}"); | warning: variables can be used directly in the `format!` string --> tests/test_ensure.rs:503:22 | 503 | let test = || Ok(ensure!("" == format!("{:#?}", point))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` help: change this to | 503 - let test = || Ok(ensure!("" == format!("{:#?}", point))); 503 + let test = || Ok(ensure!("" == format!("{point:#?}"))); |
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+6 added−0 removed
- tests:+3 added−0 removed
- other:+3 added−0 removed