minor cleanup
This commit is contained in:
parent
35afc0f484
commit
d142655a25
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user