Skip to content

Commit 608c191

Browse files
bholleyBurntSushi
authored andcommitted
syntax: decrease binary size
Avoid depending on expression Debug stringifier in release builds. The code weighs over a kilobyte, which doesn't seem worth it for an unreachable.
1 parent 9aec6ec commit 608c191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regex-syntax/src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ impl Parser {
12271227
return Err(self.errat(
12281228
chari, ErrorKind::UnclosedParen));
12291229
}
1230-
e => unreachable!("{:?}", e),
1230+
_ => unreachable!(),
12311231
}
12321232
}
12331233
Some(Build::Expr(e)) => { concat.push(e); }

0 commit comments

Comments
 (0)