Skip to content

Commit e13c835

Browse files
committed
---
yaml --- r: 81148 b: refs/heads/snap-stage3 c: 5adfa10 h: refs/heads/master v: v3
1 parent 2669bc6 commit e13c835

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 33fef9934b82df305e6f495839de566b81a5160b
4+
refs/heads/snap-stage3: 5adfa1038787cb042ca5bbe634082201d71a3b72
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/result.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -366,19 +366,6 @@ impl<T, E> either::AsEither<E, T> for Result<T, E> {
366366
}
367367
}
368368

369-
#[inline]
370-
#[allow(missing_doc)]
371-
pub fn map_opt<T, U: ToStr, V>(o_t: &Option<T>,
372-
op: &fn(&T) -> Result<V,U>) -> Result<Option<V>,U> {
373-
match *o_t {
374-
None => Ok(None),
375-
Some(ref t) => match op(t) {
376-
Ok(v) => Ok(Some(v)),
377-
Err(e) => Err(e)
378-
}
379-
}
380-
}
381-
382369
/// Takes each element in the iterator: if it is an error, no further
383370
/// elements are taken, and the error is returned.
384371
/// Should no error occur, a vector containing the values of each Result

0 commit comments

Comments
 (0)