Skip to content

Commit fe3a2e5

Browse files
ndmitchellfacebook-github-bot
authored andcommitted
Ignore a clippy warning
Summary: Warning enabled in the most recent Clippy that comes out as an error. Need to disable it so we make the Starlark CI work. Reviewed By: JakobDegen Differential Revision: D47226540 fbshipit-source-id: 3d81b2b81d360a5027dedf09035151e4a6818924
1 parent c467aea commit fe3a2e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gazebo/dupe_derive/src/clone.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ pub fn derive_clone_(input: proc_macro::TokenStream) -> proc_macro::TokenStream
2020
let name = &input.ident;
2121
let body = duplicate_impl(&input.data, &quote! { ::std::clone::Clone::clone });
2222
let gen = quote! {
23+
// Clippy wants us to use Copy if we can - we prefer to be agnostic.
24+
// Add unknown_lints temporarily.
25+
#[allow(unknown_lints)]
26+
#[allow(clippy::incorrect_clone_impl_on_copy_type)]
2327
impl #impl_generics ::std::clone::Clone for #name #ty_generics #where_clause {
2428
fn clone(&self) -> Self {
2529
#body

0 commit comments

Comments
 (0)