Skip to content

Commit e2c9932

Browse files
committed
Fix clippy lints
1 parent b81f8de commit e2c9932

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/returns-attr/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ struct Number(i32);
99

1010
// Dummy clone implementation that logs the Clone::clone call.
1111
impl Clone for Number {
12+
#[allow(clippy::non_canonical_clone_impl)]
1213
fn clone(&self) -> Self {
1314
println!("Cloning {self:?}...");
1415
Number(self.0)

0 commit comments

Comments
 (0)