enable zero_sized_map_values lint

This commit is contained in:
Charles Hall 2024-05-14 19:47:55 -07:00
parent 44b15dcb08
commit a569bf8d99
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 3 additions and 0 deletions

View file

@ -96,6 +96,7 @@ used_underscore_binding = "warn"
verbose_file_reads = "warn" verbose_file_reads = "warn"
wildcard_dependencies = "warn" wildcard_dependencies = "warn"
wildcard_imports = "warn" wildcard_imports = "warn"
zero_sized_map_values = "warn"
[package] [package]
name = "grapevine" name = "grapevine"

View file

@ -80,6 +80,8 @@ pub(crate) struct Config {
pub(crate) emergency_password: Option<String>, pub(crate) emergency_password: Option<String>,
#[serde(flatten)] #[serde(flatten)]
// This has special meaning to `serde`
#[allow(clippy::zero_sized_map_values)]
pub(crate) catchall: BTreeMap<String, IgnoredAny>, pub(crate) catchall: BTreeMap<String, IgnoredAny>,
} }