Skip to content

Commit

Permalink
Stabilize Ready::into_inner()
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Aug 7, 2024
1 parent b90a026 commit b8f7f38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/future/ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ impl<T> Ready<T> {
/// # Examples
///
/// ```
/// #![feature(ready_into_inner)]
/// use std::future;
///
/// let a = future::ready(1);
/// assert_eq!(a.into_inner(), 1);
/// ```
#[unstable(feature = "ready_into_inner", issue = "101196")]
#[stable(feature = "ready_into_inner", since = "CURRENT_RUSTC_VERSION")]
#[must_use]
#[inline]
pub fn into_inner(self) -> T {
Expand Down

0 comments on commit b8f7f38

Please sign in to comment.