Skip to content

Commit

Permalink
Ignore let_underscore_untyped pedantic clippy lint
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 2da1152 commit c48e82b
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
@@ -1,4 +1,4 @@
#![allow(clippy::if_same_then_else)]
#![allow(clippy::if_same_then_else, clippy::let_underscore_untyped)]

use indoc::writedoc;
use std::fmt::Write as _;
Expand Down

0 comments on commit c48e82b

Please # to comment.