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 {
43
43
44
44
use clone:: Clone ;
45
45
use cmp:: { Eq , Ord } ;
46
- use ops:: Add ;
47
46
use util;
48
47
use num:: Zero ;
49
48
use iterator;
@@ -77,18 +76,6 @@ impl<T: Eq + Ord> Ord for Option<T> {
77
76
}
78
77
}
79
78
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
-
92
79
// FIXME: #8242 implementing manually because deriving doesn't work for some reason
93
80
impl < T : ToStr > ToStr for Option < T > {
94
81
fn to_str ( & self ) -> ~str {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments