commit | 9d7622b04ab5773cf807284f65cddbd4e1376872 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Wed Nov 21 01:49:47 2018 -0800 |
committer | David Tolnay <dtolnay@gmail.com> | Wed Nov 21 01:57:13 2018 -0800 |
tree | 4c69a8cb75b45f23a7ebb0c310f3c67eca52f1d7 | |
parent | 9a51814296c43f6ffcff1c7021ea5f7b9d5480f3 [diff] [blame] |
Ignore trivially_copy_pass_by_ref lint in generated code
diff --git a/codegen/src/main.rs b/codegen/src/main.rs index 2ef5272..776df1c 100644 --- a/codegen/src/main.rs +++ b/codegen/src/main.rs
@@ -1129,7 +1129,10 @@ write_file( VISIT_SRC, quote! { - #![cfg_attr(feature = "cargo-clippy", allow(match_same_arms))] + #![cfg_attr( + feature = "cargo-clippy", + allow(match_same_arms, trivially_copy_pass_by_ref) + )] use *; #[cfg(any(feature = "full", feature = "derive"))]