From d8eeca9b12852e46bda9419e92202a7e738a4cb7 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 26 Feb 2023 19:43:49 -0800 Subject: [PATCH] Resolve let_underscore_untyped pedantic clippy lint in test 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..0a2f09b 100644 --- a/tests/test_writedoc.rs +++ b/tests/test_writedoc.rs @@ -47,7 +47,7 @@ fn test_angle_bracket_parsing() { } let mut s = String::new(); - let _ = writedoc! { + _ = writedoc! { if ZERO < Pair:: (), ()>::ONE { &mut s } else { &mut s }, "writedoc", };