diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-09-11 22:19:19 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-09-12 18:54:13 -0700 |
| commit | f107718a9b09daeedb5c0a3ea9b4ecb044afff44 (patch) | |
| tree | 241f1fdc61a99e4ab9e5aca3bc87267a3cb599cf /src/libstd | |
| parent | 43aba856b4a8d1b2068f1f5c5017934442d2aedd (diff) | |
| download | rust-f107718a9b09daeedb5c0a3ea9b4ecb044afff44.tar.gz rust-f107718a9b09daeedb5c0a3ea9b4ecb044afff44.zip | |
std: Remove Zero impl for Option
Options are not numeric types, so it doesn't make sense for them to implement Zero.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/option.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libstd/option.rs b/src/libstd/option.rs index dd5b71c6dd4..968330a18a8 100644 --- a/src/libstd/option.rs +++ b/src/libstd/option.rs @@ -483,11 +483,6 @@ impl<T:Zero> Option<T> { } } -impl<T> Zero for Option<T> { - fn zero() -> Option<T> { None } - fn is_zero(&self) -> bool { self.is_none() } -} - /// An iterator that yields either one or zero elements #[deriving(Clone, DeepClone)] pub struct OptionIterator<A> { |
