Skip to content

Commit 5339486

Browse files
fix: fix clone_on_copy lint in actor tests
1 parent be29af9 commit 5339486

File tree

2 files changed

+146
-1
lines changed

2 files changed

+146
-1
lines changed

Cargo.lock

Lines changed: 144 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

concurrency/src/actor_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,11 @@ pub fn backend_default_is_async() {
237237
}
238238

239239
#[test]
240+
#[allow(clippy::clone_on_copy)]
240241
pub fn backend_enum_is_copy_and_clone() {
241242
let backend = Backend::Async;
242243
let copied = backend; // Copy
243-
let cloned = backend.clone(); // Clone
244+
let cloned = backend.clone(); // Clone - intentionally testing Clone trait
244245
assert_eq!(backend, copied);
245246
assert_eq!(backend, cloned);
246247
}

0 commit comments

Comments
 (0)