Skip to content

Commit

Permalink
stabilize the poll_map feature
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jan 13, 2021
1 parent da305a2 commit b2f5048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/task/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl<T, E> Poll<Result<T, E>> {

impl<T, E> Poll<Option<Result<T, E>>> {
/// Changes the success value of this `Poll` with the closure provided.
#[unstable(feature = "poll_map", issue = "63514")]
#[stable(feature = "poll_map", since = "1.51.0")]
pub fn map_ok<U, F>(self, f: F) -> Poll<Option<Result<U, E>>>
where
F: FnOnce(T) -> U,
Expand All @@ -98,7 +98,7 @@ impl<T, E> Poll<Option<Result<T, E>>> {
}

/// Changes the error value of this `Poll` with the closure provided.
#[unstable(feature = "poll_map", issue = "63514")]
#[stable(feature = "poll_map", since = "1.51.0")]
pub fn map_err<U, F>(self, f: F) -> Poll<Option<Result<T, U>>>
where
F: FnOnce(E) -> U,
Expand Down

0 comments on commit b2f5048

Please sign in to comment.