Update clippy configuration

This commit is contained in:
Jonas Platte 2021-10-19 14:34:51 +02:00
parent e579735ebc
commit 1bb9298059
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
3 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,5 @@
msrv = "1.53" msrv = "1.53"
avoid-breaking-exported-api = false
disallowed-types = [ disallowed-types = [
"std::collections::HashMap", "std::collections::HashMap",
"std::collections::HashSet", "std::collections::HashSet",

View File

@ -4,6 +4,7 @@ use thiserror::Error;
/// `ruma-signature`'s error type, wraps a number of other error types. /// `ruma-signature`'s error type, wraps a number of other error types.
#[derive(Debug, Error)] #[derive(Debug, Error)]
#[non_exhaustive] #[non_exhaustive]
#[allow(clippy::enum_variant_names)]
pub enum Error { pub enum Error {
/// [`JsonError`] wrapper. /// [`JsonError`] wrapper.
#[error("JSON error: {0}")] #[error("JSON error: {0}")]

View File

@ -1,13 +1,10 @@
msrv = "1.53" msrv = "1.53"
avoid-breaking-exported-api = false
disallowed-types = [] disallowed-types = []
enforced-import-renames = [ { path = "serde_json::Value", rename = "JsonValue" } ] enforced-import-renames = [ { path = "serde_json::Value", rename = "JsonValue" } ]
standard-macro-braces = [ standard-macro-braces = [
{ name = "btreeset", brace = "[" }, { name = "btreeset", brace = "[" },
# The macro calls itself like btreemap!(...) so this triggers for any use { name = "btreemap", brace = "{" },
# { name = "btreemap", brace = "{" }, { name = "hashset", brace = "[" },
{ name = "hashmap", brace = "{" },
# For some reason these raise errors in some places where the macros are
# used correctly according to the config
# { name = "hashset", brace = "[" },
# { name = "hashmap", brace = "{" },
] ]