Skip to content
Myr

Resolve default_trait_access clippy lint in PR 158

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by David Tolnay · committed by David Tolnay · parent f01f908 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/test_chain.rs+1 added-1 removed
49 unmodified lines
50}5152#[test]53fn test_default() {54 let mut c: Chain = Default::default();54 let mut c = Chain::default();55 assert!(c.next().is_none());56}5758#[test]
10 unmodified lines