]> git.lizzy.rs Git - rust.git/commitdiff
std: Remove unused trait bound in Result::map
authorblake2-ppc <blake2-ppc>
Sat, 3 Aug 2013 17:40:20 +0000 (19:40 +0200)
committerblake2-ppc <blake2-ppc>
Tue, 6 Aug 2013 02:05:07 +0000 (04:05 +0200)
src/libstd/result.rs

index e06e58acbc8e84b9c07b2802e456726340610a86..5a6021d32a5e3d30b1c1f851cb10e07b6c3c94e3 100644 (file)
@@ -214,7 +214,7 @@ impl<T, E: Clone + ToStr> Result<T, E> {
     ///         parse_bytes(buf)
     ///     };
     #[inline]
-    pub fn map<U: Clone>(&self, op: &fn(&T) -> U) -> Result<U,E> {
+    pub fn map<U>(&self, op: &fn(&T) -> U) -> Result<U,E> {
         match *self {
             Ok(ref t) => Ok(op(t)),
             Err(ref e) => Err(e.clone())