units: Move excluded lints to manifest

Might as well put these with the pedantic ones.
This commit is contained in:
Tobin C. Harding 2024-12-17 18:04:55 +11:00
parent 5290a93a38
commit 9619f68956
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
3 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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]

View File

@ -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;