From 768ced3664eedf2b98fd482ff9588c6475de4bd2 Mon Sep 17 00:00:00 2001 From: LetsMelon Date: Fri, 13 Oct 2023 12:03:33 +0200 Subject: [PATCH] comment out all 'no_coverage', see https://github.com/rust-lang/rust/issues/84605 and https://github.com/rust-lang/rust/pull/114656 --- crates/core/src/frame_image_format.rs | 2 +- crates/core/src/lib.rs | 2 +- crates/core/src/pixel.rs | 4 ++-- crates/core/src/point.rs | 6 +++--- crates/effect/src/lib.rs | 2 +- crates/effect/src/library/scripting.rs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/core/src/frame_image_format.rs b/crates/core/src/frame_image_format.rs index d43545c..a7348fc 100644 --- a/crates/core/src/frame_image_format.rs +++ b/crates/core/src/frame_image_format.rs @@ -28,7 +28,7 @@ impl FrameImageFormat { } impl Default for FrameImageFormat { - #[cfg_attr(coverage_nightly, no_coverage)] + // #[cfg_attr(coverage_nightly, no_coverage)] fn default() -> Self { FrameImageFormat::Png } diff --git a/crates/core/src/lib.rs b/crates/core/src/lib.rs index f6d91fe..e103764 100644 --- a/crates/core/src/lib.rs +++ b/crates/core/src/lib.rs @@ -1,7 +1,7 @@ #![feature(variant_count)] // TODO remove feature #![feature(is_some_and)] -#![cfg_attr(coverage_nightly, feature(no_coverage))] +// #![cfg_attr(coverage_nightly, feature(no_coverage))] #[macro_use] extern crate static_assertions; diff --git a/crates/core/src/pixel.rs b/crates/core/src/pixel.rs index 360a893..a07ff1d 100644 --- a/crates/core/src/pixel.rs +++ b/crates/core/src/pixel.rs @@ -6,7 +6,7 @@ use std::ops::{Index, IndexMut}; pub struct Pixel([u8; 4]); impl std::fmt::Debug for Pixel { - #[cfg_attr(coverage_nightly, no_coverage)] + // #[cfg_attr(coverage_nightly, no_coverage)] fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.debug_struct("Pixel") .field("r", &self.0[0]) @@ -18,7 +18,7 @@ impl std::fmt::Debug for Pixel { } impl std::fmt::Display for Pixel { - #[cfg_attr(coverage_nightly, no_coverage)] + // #[cfg_attr(coverage_nightly, no_coverage)] fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.debug_struct("Pixel") .field("r", &self.0[0]) diff --git a/crates/core/src/point.rs b/crates/core/src/point.rs index 9d9bc6b..b209db4 100644 --- a/crates/core/src/point.rs +++ b/crates/core/src/point.rs @@ -61,7 +61,7 @@ impl AsRef<[f64; 2]> for Point { impl AbsDiffEq for Point { type Epsilon = ::Epsilon; - #[cfg_attr(coverage_nightly, no_coverage)] + // #[cfg_attr(coverage_nightly, no_coverage)] fn default_epsilon() -> Self::Epsilon { f64::default_epsilon() } @@ -72,7 +72,7 @@ impl AbsDiffEq for Point { } impl RelativeEq for Point { - #[cfg_attr(coverage_nightly, no_coverage)] + // #[cfg_attr(coverage_nightly, no_coverage)] fn default_max_relative() -> Self::Epsilon { f64::default_max_relative() } @@ -89,7 +89,7 @@ impl RelativeEq for Point { } impl UlpsEq for Point { - #[cfg_attr(coverage_nightly, no_coverage)] + // #[cfg_attr(coverage_nightly, no_coverage)] fn default_max_ulps() -> u32 { f64::default_max_ulps() } diff --git a/crates/effect/src/lib.rs b/crates/effect/src/lib.rs index e137a4d..359920e 100644 --- a/crates/effect/src/lib.rs +++ b/crates/effect/src/lib.rs @@ -1,5 +1,5 @@ #![feature(int_roundings)] -#![cfg_attr(coverage_nightly, feature(no_coverage))] +// #![cfg_attr(coverage_nightly, feature(no_coverage))] use error::EffectError; use rusvid_core::plane::Plane; diff --git a/crates/effect/src/library/scripting.rs b/crates/effect/src/library/scripting.rs index f098f5c..b04b273 100644 --- a/crates/effect/src/library/scripting.rs +++ b/crates/effect/src/library/scripting.rs @@ -17,7 +17,7 @@ pub struct ScriptingEffect { } impl std::fmt::Debug for ScriptingEffect { - #[cfg_attr(coverage_nightly, no_coverage)] + // #[cfg_attr(coverage_nightly, no_coverage)] fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.debug_struct("ScriptingEffect") .field("id", &self.id)