diff options
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index 6228ed30..496f87d0 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -529,7 +529,8 @@ impl Parser { macro_rules! arg_or_default { ($arg:expr, $default:expr) => { - if $arg == ::std::num::Zero::zero() { $default } else { $arg } + // using Default::default as a generic zero + if $arg == Default::default() { $default } else { $arg } } } |