We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clippy
1 parent b81f8de commit e2c9932Copy full SHA for e2c9932
examples/returns-attr/main.rs
@@ -9,6 +9,7 @@ struct Number(i32);
9
10
// Dummy clone implementation that logs the Clone::clone call.
11
impl Clone for Number {
12
+ #[allow(clippy::non_canonical_clone_impl)]
13
fn clone(&self) -> Self {
14
println!("Cloning {self:?}...");
15
Number(self.0)
0 commit comments