Skip to content

Commit c5e4c55

Browse files
author
blake2-ppc
committed
std: Remove unused trait bound in Result::map
1 parent 109e0d8 commit c5e4c55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl<T, E: Clone + ToStr> Result<T, E> {
214214
/// parse_bytes(buf)
215215
/// };
216216
#[inline]
217-
pub fn map<U: Clone>(&self, op: &fn(&T) -> U) -> Result<U,E> {
217+
pub fn map<U>(&self, op: &fn(&T) -> U) -> Result<U,E> {
218218
match *self {
219219
Ok(ref t) => Ok(op(t)),
220220
Err(ref e) => Err(e.clone())

0 commit comments

Comments
 (0)