Skip to content

Commit

Permalink
docs(cargo-test-support): Insertion order of redactions doesn't matter
Browse files Browse the repository at this point in the history
  • Loading branch information
choznerol committed Jun 29, 2024
1 parent 34af338 commit 281d123
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/cargo-test-support/src/compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ fn add_common_redactions(subs: &mut snapbox::Redactions) {
// "1719325877.527949100s, 61549498ns after last build at 1719325877.466399602s"
// "1719503592.218193216s, 1h 1s after last build at 1719499991.982681034s"
// into "[DIRTY_REASON_NEW_TIME], [DIRTY_REASON_DIFF] after last build at [DIRTY_REASON_OLD_TIME]"
// The ordering of these 3 subs matters.
subs.insert(
"[DIRTY_REASON_NEW_TIME]",
regex!(r"(?<redacted>[0-9]+(\.[0-9]+)?s), (\s?[0-9]+(\.[0-9]+)?(s|ns|h))+ after last build at ([0-9]+(\.[0-9]+)?s)"),
Expand Down

0 comments on commit 281d123

Please sign in to comment.