]> git.bitcoin.ninja Git - rust-lightning/commit
Allow `clippy::unwrap-or-default` because its usually wrong
authorMatt Corallo <git@bluematt.me>
Wed, 23 Oct 2024 15:59:23 +0000 (15:59 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 23 Oct 2024 16:15:00 +0000 (16:15 +0000)
commit4741653f76c650f31065f6f614ec37d8625cf0f5
treecab0b2834d586bf08ccbbeb07ebc15158025f0b0
parente0838be5e46a172521b98b5ca4410081321a9177
Allow `clippy::unwrap-or-default` because its usually wrong

`or_default` is generally less readable than writing out the thing
we're writing, as `Default` is opaque but explicit constructors
generally are not. Thus, we ignore the clippy lint (ideally we
could invert it and ban the use of `Default` in the crate entirely
but alas).
ci/check-lint.sh