From b8e0f9c5876629062676fd98386f949f5c49634b Mon Sep 17 00:00:00 2001 From: Romain Ruetschi Date: Wed, 6 Dec 2023 17:19:59 +0100 Subject: [PATCH] Exclude manual impls from coverage --- Code/round/src/input.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Code/round/src/input.rs b/Code/round/src/input.rs index 33b0df1c6..116d33abf 100644 --- a/Code/round/src/input.rs +++ b/Code/round/src/input.rs @@ -76,6 +76,7 @@ where } impl Clone for Input { + #[cfg_attr(coverage_nightly, coverage(off))] fn clone(&self) -> Self { match self { Input::NewRound => Input::NewRound, @@ -108,6 +109,7 @@ impl Clone for Input { } impl PartialEq for Input { + #[cfg_attr(coverage_nightly, coverage(off))] fn eq(&self, other: &Self) -> bool { match (self, other) { (Input::NewRound, Input::NewRound) => true, @@ -158,6 +160,7 @@ where Ctx::Value: fmt::Debug, Ctx::Proposal: fmt::Debug, { + #[cfg_attr(coverage_nightly, coverage(off))] fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Input::NewRound => write!(f, "NewRound"),