Skip to content

Commit

Permalink
Don't mutate Debug for Workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Nov 11, 2023
1 parent c1c9306 commit a87bc43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,6 @@ src/visit.rs: replace path_is -> bool with true
src/visit.rs: replace path_is -> bool with false
src/visit.rs: replace attr_is_mutants_skip -> bool with true
src/visit.rs: replace attr_is_mutants_skip -> bool with false
src/workspace.rs: replace <impl Debug for Workspace>::fmt -> fmt::Result with Ok(Default::default())
src/workspace.rs: replace <impl Debug for Workspace>::fmt -> fmt::Result with Err(::anyhow::anyhow!("mutated!"))
src/workspace.rs: replace PackageFilter::explicit -> PackageFilter with Default::default()
src/workspace.rs: replace PackageFilter::resolve_auto -> Result<PackageFilter> with Ok(Default::default())
src/workspace.rs: replace PackageFilter::resolve_auto -> Result<PackageFilter> with Err(::anyhow::anyhow!("mutated!"))
Expand Down
1 change: 1 addition & 0 deletions src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub struct Workspace {
}

impl fmt::Debug for Workspace {
#[mutants::skip]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Workspace")
.field("dir", &self.dir)
Expand Down

0 comments on commit a87bc43

Please sign in to comment.