Skip to content

Commit

Permalink
fix(assert): Allow access to Redactions
Browse files Browse the repository at this point in the history
This can be used for very custom hacks
  • Loading branch information
epage committed Jul 24, 2024
1 parent 7515153 commit 99a9295
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/snapbox/src/assert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ impl Assert {
pub fn selected_action(&self) -> Action {
self.action
}

pub fn redactions(&self) -> &crate::Redactions {
&self.substitutions
}
}

impl Default for Assert {
Expand Down

0 comments on commit 99a9295

Please sign in to comment.