From 88f25d809d0148dea13d6f56c3b381aa98735801 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 2 Jul 2021 22:41:02 -0700 Subject: [PATCH] Resolve default_trait_access clippy lint in PR 158 error: calling `anyhow::Chain::default()` is more clear than this expression --> tests/test_chain.rs:54:24 | 54 | let mut c: Chain = Default::default(); | ^^^^^^^^^^^^^^^^^^ help: try: `anyhow::Chain::default()` | = note: `-D clippy::default-trait-access` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access --- tests/test_chain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_chain.rs b/tests/test_chain.rs index e137248..12fd472 100644 --- a/tests/test_chain.rs +++ b/tests/test_chain.rs @@ -51,7 +51,7 @@ fn test_len() { #[test] fn test_default() { - let mut c: Chain = Default::default(); + let mut c = Chain::default(); assert!(c.next().is_none()); }