Skip to content

Commit 0bd034c

Browse files
committed
refactor(test): Split up calls by type
1 parent 4a6f25c commit 0bd034c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

crates/cargo-test-support/src/compare.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ pub fn assert_ui() -> snapbox::Assert {
8383
let root = root.display().to_string();
8484

8585
let mut subs = snapbox::Redactions::new();
86-
subs.extend([
87-
(
88-
"[EXE]",
89-
std::borrow::Cow::Borrowed(std::env::consts::EXE_SUFFIX),
90-
),
91-
("[ROOT]", std::borrow::Cow::Owned(root)),
92-
("[ROOTURL]", std::borrow::Cow::Owned(root_url)),
93-
])
86+
subs.extend([(
87+
"[EXE]",
88+
std::borrow::Cow::Borrowed(std::env::consts::EXE_SUFFIX),
89+
)])
9490
.unwrap();
91+
subs.insert("[ROOT]", std::borrow::Cow::Owned(root))
92+
.unwrap();
93+
subs.insert("[ROOTURL]", std::borrow::Cow::Owned(root_url))
94+
.unwrap();
9595
snapbox::Assert::new()
9696
.action_env(snapbox::assert::DEFAULT_ACTION_ENV)
9797
.substitutions(subs)

0 commit comments

Comments
 (0)