fix: Gate fmt::Display for Flag w/ debug_asserts

Implementation of `fmt::Display` for `Flag` caused tests to fail when
not ran with `debug_assertions` feature.
This commit is contained in:
NickHackman 2020-06-17 00:09:25 -04:00
parent bf3d947f01
commit b09afcf653

View file

@ -1685,6 +1685,7 @@ impl<'a> Flag<'_> {
}
}
#[cfg(debug_assertions)]
impl<'a> fmt::Display for Flag<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {