diff --git a/crates/snapbox/src/substitutions.rs b/crates/snapbox/src/substitutions.rs index 71bd89bc..e691dd0d 100644 --- a/crates/snapbox/src/substitutions.rs +++ b/crates/snapbox/src/substitutions.rs @@ -536,7 +536,8 @@ mod test { fn substitute_disabled() { let input = "cargo"; let pattern = "cargo[EXE]"; - let sub = Substitutions::with_exe(); + let mut sub = Substitutions::new(); + sub.insert("[EXE]", "").unwrap(); let actual = normalize(input, pattern, &sub); assert_eq!(actual, pattern); }