Skip to content

Commit 88f25d8

Browse files
committed
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
1 parent f01f908 commit 88f25d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn test_len() {
5151

5252
#[test]
5353
fn test_default() {
54-
let mut c: Chain = Default::default();
54+
let mut c = Chain::default();
5555
assert!(c.next().is_none());
5656
}
5757

0 commit comments

Comments
 (0)