From 99a9295772d6b7d400f5f62ca459478af6bf3a50 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 24 Jul 2024 16:45:15 -0500 Subject: [PATCH] fix(assert): Allow access to Redactions This can be used for very custom hacks --- crates/snapbox/src/assert/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/snapbox/src/assert/mod.rs b/crates/snapbox/src/assert/mod.rs index 3f647a35..598ee29e 100644 --- a/crates/snapbox/src/assert/mod.rs +++ b/crates/snapbox/src/assert/mod.rs @@ -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 {