diff options
author | Joe Wilm <joe@jwilm.com> | 2016-07-15 07:55:44 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-07-15 07:55:44 -0700 |
commit | 80f6f542abf8701de45010f5f29f4bfae74fe8cd (patch) | |
tree | 1067f664278cf5b9a2998bc0e71f6201a8d3c00f /src/ansi.rs | |
parent | 316ccd1c3a883f447d63fd5c935cdf5f37e75157 (diff) | |
download | alacritty-80f6f542abf8701de45010f5f29f4bfae74fe8cd.tar.gz alacritty-80f6f542abf8701de45010f5f29f4bfae74fe8cd.zip |
Update to latest nightly
Previous version of serde no longer worked; cargo packages were updated
as a result. `Zero` and `One` traits were deprecated. Use of those was
removed. The `Step` trait gained a lot more methods, and the index::$ty
implementations were updated.
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 } } } |