Skip to content

Commit

Permalink
Resolve let_underscore_untyped pedantic clippy lint in test
Browse files Browse the repository at this point in the history
    error: non-binding `let` without a type annotation
      --> tests/test_writedoc.rs:50:5
       |
    50 | /     let _ = writedoc! {
    51 | |         if ZERO < Pair::<fn() -> (), ()>::ONE { &mut s } else { &mut s },
    52 | |         "writedoc",
    53 | |     };
       | |______^
       |
       = help: consider adding a type annotation or removing the `let` keyword
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
       = note: `-D clippy::let-underscore-untyped` implied by `-D clippy::pedantic`
  • Loading branch information
dtolnay committed Feb 27, 2023
1 parent bbdb3a9 commit d8eeca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_writedoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn test_angle_bracket_parsing() {
}

let mut s = String::new();
let _ = writedoc! {
_ = writedoc! {
if ZERO < Pair::<fn() -> (), ()>::ONE { &mut s } else { &mut s },
"writedoc",
};
Expand Down

0 comments on commit d8eeca9

Please sign in to comment.