mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
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:
parent
bf3d947f01
commit
b09afcf653
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue