Skip to content

Commit 0074338

Browse files
fix: allow clone_on_copy in test that verifies Clone trait
1 parent ac15511 commit 0074338

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

concurrency/src/tasks/gen_server.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,11 @@ mod tests {
709709
}
710710

711711
#[test]
712+
#[allow(clippy::clone_on_copy)]
712713
pub fn backend_enum_is_copy_and_clone() {
713714
let backend = Backend::Async;
714715
let copied = backend; // Copy
715-
let cloned = backend.clone(); // Clone
716+
let cloned = backend.clone(); // Clone - intentionally testing Clone trait
716717
assert_eq!(backend, copied);
717718
assert_eq!(backend, cloned);
718719
}

0 commit comments

Comments
 (0)