From 9e65603460307f6391b53e7f58db887fb6e4ed1a Mon Sep 17 00:00:00 2001 From: Finomnis Date: Wed, 18 Oct 2023 22:52:55 +0200 Subject: [PATCH] Another attempt to fix error_action coverage --- src/error_action.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/error_action.rs b/src/error_action.rs index cd5090e..63a37ba 100644 --- a/src/error_action.rs +++ b/src/error_action.rs @@ -31,6 +31,8 @@ mod tests { #[test] fn derive_traits() { let x = ErrorAction::CatchAndLocalShutdown; - assert!(x.clone() == x); + #[allow(clippy::clone_on_copy)] + let y = x.clone(); + assert!(y == x); } }