diff options
Diffstat (limited to 'vendor/snapbox/src/harness.rs')
-rw-r--r-- | vendor/snapbox/src/harness.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/snapbox/src/harness.rs b/vendor/snapbox/src/harness.rs index ee1035aaa..77e085ebc 100644 --- a/vendor/snapbox/src/harness.rs +++ b/vendor/snapbox/src/harness.rs @@ -99,7 +99,7 @@ where overrides .matched(&path, is_dir) .is_whitelist() - .then(|| path) + .then_some(path) } else { Some(path) } @@ -114,6 +114,7 @@ where let actual = (test)(&case.fixture)?; let actual = actual.to_string(); let actual = crate::Data::text(actual).normalize(NormalizeNewlines); + #[allow(deprecated)] let verify = Verifier::new() .palette(crate::report::Palette::auto()) .action(self.action); @@ -199,6 +200,7 @@ impl Verifier { impl Default for Verifier { fn default() -> Self { Self { + #[allow(deprecated)] palette: crate::report::Palette::auto(), action: Action::Verify, } |