Skip to content

Commit

Permalink
Fix deprecation warning from insta
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlarsen committed Mar 5, 2024
1 parent 9fc2cc4 commit f8526c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions crates/noseyparker-cli/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ use indoc::indoc;
pub use assert_cmd::prelude::*;
pub use assert_fs::prelude::*;
pub use assert_fs::{fixture::ChildPath, TempDir};
pub use insta::{
assert_display_snapshot, assert_json_snapshot, assert_snapshot, internals::Redaction,
with_settings,
};
pub use insta::{assert_json_snapshot, assert_snapshot, internals::Redaction, with_settings};
pub use predicates::str::{is_empty, RegexPredicate};
pub use std::path::Path;
pub use std::process::Command;
Expand All @@ -25,7 +22,7 @@ macro_rules! assert_cmd_snapshot {
let cmd = $cmd;
let output = cmd.get_output();
let status = output.status;
assert_display_snapshot!(status);
assert_snapshot!(status);
let stdout = String::from_utf8(output.stdout.clone()).unwrap();
assert_snapshot!(stdout);
let stderr = String::from_utf8(output.stderr.clone()).unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ Build System:
rustc Commit Date: <PLACEHOLDER>
rustc Commit SHA: <PLACEHOLDER>
rustc LLVM Version: <PLACEHOLDER>

0 comments on commit f8526c5

Please sign in to comment.