We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac15511 commit 0074338Copy full SHA for 0074338
concurrency/src/tasks/gen_server.rs
@@ -709,10 +709,11 @@ mod tests {
709
}
710
711
#[test]
712
+ #[allow(clippy::clone_on_copy)]
713
pub fn backend_enum_is_copy_and_clone() {
714
let backend = Backend::Async;
715
let copied = backend; // Copy
- let cloned = backend.clone(); // Clone
716
+ let cloned = backend.clone(); // Clone - intentionally testing Clone trait
717
assert_eq!(backend, copied);
718
assert_eq!(backend, cloned);
719
0 commit comments