Update clippy configuration
This commit is contained in:
parent
e579735ebc
commit
1bb9298059
@ -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",
|
||||||
|
@ -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}")]
|
||||||
|
@ -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 = "{" },
|
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user