diff --git a/Code/driver/src/error.rs b/Code/driver/src/error.rs index 772f0bb53..85c2e77aa 100644 --- a/Code/driver/src/error.rs +++ b/Code/driver/src/error.rs @@ -24,6 +24,7 @@ impl fmt::Display for Error where Ctx: Context, { + #[cfg_attr(coverage_nightly, coverage(off))] fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Error::NoValueToPropose => write!(f, "No value to propose"), @@ -42,6 +43,7 @@ impl PartialEq for Error where Ctx: Context, { + #[cfg_attr(coverage_nightly, coverage(off))] fn eq(&self, other: &Self) -> bool { match (self, other) { (Error::NoValueToPropose, Error::NoValueToPropose) => true, diff --git a/Code/test/src/validator_set.rs b/Code/test/src/validator_set.rs index e3da15d0e..36c1fee52 100644 --- a/Code/test/src/validator_set.rs +++ b/Code/test/src/validator_set.rs @@ -25,6 +25,7 @@ impl Address { } impl fmt::Display for Address { + #[cfg_attr(coverage_nightly, coverage(off))] fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { for byte in self.0.iter() { write!(f, "{:02x}", byte)?;