units: Move excluded lints to manifest
Might as well put these with the pedantic ones.
This commit is contained in:
parent
5290a93a38
commit
9619f68956
|
@ -36,6 +36,9 @@ rustdoc-args = ["--cfg", "docsrs"]
|
|||
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(kani)'] }
|
||||
|
||||
[lints.clippy]
|
||||
# Exclude lints we don't think are valuable.
|
||||
needless_question_mark = "allow" # https://github.com/rust-bitcoin/rust-bitcoin/pull/2134
|
||||
manual_range_contains = "allow" # More readable than clippy's format.
|
||||
# Exhaustive list of pedantic clippy lints
|
||||
assigning_clones = "warn"
|
||||
bool_to_int_with_if = "warn"
|
||||
|
|
|
@ -405,7 +405,7 @@ mod tests {
|
|||
assert_eq!(json, want);
|
||||
|
||||
let rinsed: HasAmount = serde_json::from_str(&json).expect("failed to deser");
|
||||
assert_eq!(rinsed, orig)
|
||||
assert_eq!(rinsed, orig);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -424,7 +424,7 @@ mod tests {
|
|||
assert_eq!(json, want);
|
||||
|
||||
let rinsed: HasAmount = serde_json::from_str(&json).expect("failed to deser");
|
||||
assert_eq!(rinsed, orig)
|
||||
assert_eq!(rinsed, orig);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -11,9 +11,6 @@
|
|||
#![warn(missing_docs)]
|
||||
#![warn(deprecated_in_future)]
|
||||
#![doc(test(attr(warn(unused))))]
|
||||
// Exclude lints we don't think are valuable.
|
||||
#![allow(clippy::needless_question_mark)] // https://github.com/rust-bitcoin/rust-bitcoin/pull/2134
|
||||
#![allow(clippy::manual_range_contains)] // More readable than clippy's format.
|
||||
|
||||
#[cfg(feature = "alloc")]
|
||||
extern crate alloc;
|
||||
|
|
Loading…
Reference in New Issue