File tree Expand file tree Collapse file tree 2 files changed +0
-38
lines changed Expand file tree Collapse file tree 2 files changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ let unwrapped_msg = match msg {
4343
4444use clone:: Clone ;
4545use cmp:: { Eq , Ord } ;
46- use ops:: Add ;
4746use util;
4847use num:: Zero ;
4948use iterator;
@@ -77,18 +76,6 @@ impl<T: Eq + Ord> Ord for Option<T> {
7776 }
7877}
7978
80- impl < T : Add < T , T > > Add < Option < T > , Option < T > > for Option < T > {
81- #[ inline]
82- fn add ( & self , other : & Option < T > ) -> Option < T > {
83- match ( & * self , & * other) {
84- ( & None , & None ) => None ,
85- ( _, & None ) => None ,
86- ( & None , _) => None ,
87- ( & Some ( ref lhs) , & Some ( ref rhs) ) => Some ( * lhs + * rhs)
88- }
89- }
90- }
91-
9279// FIXME: #8242 implementing manually because deriving doesn't work for some reason
9380impl < T : ToStr > ToStr for Option < T > {
9481 fn to_str ( & self ) -> ~str {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments