Skip to content

Commit 1b76a90

Browse files
committed
refactor(test): Limit the scope of WildStr
1 parent 2dd062f commit 1b76a90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,13 +458,13 @@ fn normalize_expected(content: &str, redactions: &snapbox::Redactions) -> String
458458
}
459459

460460
/// A single line string that supports `[..]` wildcard matching.
461-
pub(crate) struct WildStr<'a> {
461+
struct WildStr<'a> {
462462
has_meta: bool,
463463
line: &'a str,
464464
}
465465

466466
impl<'a> WildStr<'a> {
467-
pub fn new(line: &'a str) -> WildStr<'a> {
467+
fn new(line: &'a str) -> WildStr<'a> {
468468
WildStr {
469469
has_meta: line.contains("[..]"),
470470
line,

0 commit comments

Comments
 (0)