Skip to content

Commit

Permalink
mutants::skip
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Jan 15, 2024
1 parent 24df1f1 commit 3b8b2d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions all-is-cubes/src/camera/graphics_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ pub enum AntialiasingOption {
impl AntialiasingOption {
/// True if GPU renderers should enable multisampling
#[doc(hidden)]
#[mutants::skip] // a test would only reiterate the code
pub fn is_msaa(&self) -> bool {
match self {
Self::None => false,
Expand Down
1 change: 1 addition & 0 deletions all-is-cubes/src/time/deadline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ impl<I: Instant> core::ops::Sub<Duration> for Deadline<I> {

// Allow comparing `Deadline` and `Instant` without wrapping.
impl<I: Instant> PartialEq<I> for Deadline<I> {
#[mutants::skip] // trivial
fn eq(&self, other: &I) -> bool {
self.partial_cmp(other) == Some(Ordering::Equal)
}
Expand Down

0 comments on commit 3b8b2d2

Please sign in to comment.