Skip to content

Commit 4741653

Browse files
committed
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).
1 parent e0838be commit 4741653

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/check-lint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
set -e
33
set -x
44
RUSTFLAGS='-D warnings' cargo clippy -- \
5+
`# Things where clippy is just wrong` \
6+
-A clippy::unwrap-or-default \
57
`# Errors` \
68
-A clippy::erasing_op \
79
-A clippy::never_loop \

0 commit comments

Comments
 (0)