Skip to content

Commit

Permalink
fix clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Sep 9, 2023
1 parent 68707bc commit f8f25ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/trait_handlers/clone/clone_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ impl TraitHandler for CloneEnumHandler {
#clone_tokens
}

#[allow(clippy::incorrect_clone_impl_on_copy_type)]
#[inline]
fn clone_from(&mut self, _source: &Self) {
let mut done = false;
Expand Down
1 change: 1 addition & 0 deletions src/trait_handlers/clone/clone_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ impl TraitHandler for CloneStructHandler {
#clone_tokens
}

#[allow(clippy::incorrect_clone_impl_on_copy_type)]
#[inline]
fn clone_from(&mut self, _source: &Self) {
#clone_from_tokens
Expand Down
1 change: 1 addition & 0 deletions tests/default_struct.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![cfg(feature = "Default")]
#![no_std]
#![allow(clippy::default_constructed_unit_structs)]

extern crate alloc;

Expand Down

0 comments on commit f8f25ee

Please sign in to comment.