We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af7648a commit 1b74b1cCopy full SHA for 1b74b1c
src/lib.rs
@@ -97,6 +97,11 @@
97
#![cfg_attr(docsrs, feature(doc_cfg))]
98
#![deny(clippy::cast_ptr_alignment)]
99
#![deny(unsafe_op_in_unsafe_fn)]
100
+// I found the change suggested by this rules could hurt code readability. I cannot
101
+// remeber every type's default value, in such cases, it forces me to open
102
+// the std doc to insepct the Default value, which is unnecessary with
103
+// `.unwrap_or(value)`.
104
+#![allow(clippy::unwrap_or_default)]
105
106
// Re-exported external crates
107
pub use libc;
0 commit comments