Skip to content

Commit

Permalink
comment out all 'no_coverage', see rust-lang/rust#84605 and rust-lang…
Browse files Browse the repository at this point in the history
  • Loading branch information
LetsMelon committed Oct 13, 2023
1 parent dc1aa5e commit 768ced3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion crates/core/src/frame_image_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/pixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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])
Expand Down
6 changes: 3 additions & 3 deletions crates/core/src/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl AsRef<[f64; 2]> for Point {
impl AbsDiffEq for Point {
type Epsilon = <f64 as AbsDiffEq>::Epsilon;

#[cfg_attr(coverage_nightly, no_coverage)]
// #[cfg_attr(coverage_nightly, no_coverage)]
fn default_epsilon() -> Self::Epsilon {
f64::default_epsilon()
}
Expand All @@ -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()
}
Expand All @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion crates/effect/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion crates/effect/src/library/scripting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 768ced3

Please sign in to comment.