From c48e82b53507828d67dd2bffdb774c93665bb057 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 27 Feb 2023 00:18:51 -0700 Subject: [PATCH] Ignore let_underscore_untyped pedantic clippy lint error: non-binding `let` without a type annotation --> tests/test_writedoc.rs:50:5 | 50 | / let _ = writedoc! { 51 | | if ZERO < Pair:: (), ()>::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` --- tests/test_writedoc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_writedoc.rs b/tests/test_writedoc.rs index b87f2f4..23fc171 100644 --- a/tests/test_writedoc.rs +++ b/tests/test_writedoc.rs @@ -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 _;