std: Remove unused trait bound in Result::map

This commit is contained in:
blake2-ppc 2013-08-03 19:40:20 +02:00
parent 109e0d85a1
commit c5e4c55989

View 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())