diff options
author | Matthias Krüger <[email protected]> | 2021-03-21 14:33:18 +0000 |
---|---|---|
committer | Matthias Krüger <[email protected]> | 2021-03-21 15:15:41 +0000 |
commit | 202b51bc7b6999900e06ec2cfb8d72fe9aa4af29 (patch) | |
tree | dfb59e08133b7a2ea961661298c51cd18833148e /xtask/src/codegen | |
parent | ae7e55c1dd801c60092205ec8890179e10a47814 (diff) |
a lot of clippy::style fixes
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r-- | xtask/src/codegen/gen_syntax.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs index 80f26e8f5..ba4b24848 100644 --- a/xtask/src/codegen/gen_syntax.rs +++ b/xtask/src/codegen/gen_syntax.rs | |||
@@ -707,7 +707,7 @@ fn extract_struct_trait(node: &mut AstNodeSrc, trait_name: &str, methods: &[&str | |||
707 | let mut to_remove = Vec::new(); | 707 | let mut to_remove = Vec::new(); |
708 | for (i, field) in node.fields.iter().enumerate() { | 708 | for (i, field) in node.fields.iter().enumerate() { |
709 | let method_name = field.method_name().to_string(); | 709 | let method_name = field.method_name().to_string(); |
710 | if methods.iter().any(|&it| it == &method_name) { | 710 | if methods.iter().any(|&it| it == method_name) { |
711 | to_remove.push(i); | 711 | to_remove.push(i); |
712 | } | 712 | } |
713 | } | 713 | } |