minor cleanup

This commit is contained in:
Max Känner 2024-07-25 11:03:46 +02:00
parent 35afc0f484
commit d142655a25
2 changed files with 1 additions and 2 deletions

View File

@ -14,7 +14,6 @@ authors = ["Max Känner <max.kaenner@gmail.com>"]
unsafe_code = "forbid"
[lints.clippy]
enum_glob_use = "deny"
pedantic = "deny"
nursery = "deny"
cargo = "warn"

View File

@ -415,7 +415,7 @@ fn generate_serde(ident: &Ident, ty: &Type, checked_new: bool) -> TokenStream2 {
fn generate_tree_key<'a>(
ident: &Ident,
keys: impl Iterator<Item = &'a &'a str> + ExactSizeIterator + Clone,
keys: impl ExactSizeIterator<Item = &'a &'a str> + Clone,
) -> TokenStream2 {
let keys = once(&"value").chain(keys);
let num_keys = keys