Skip to content

Commit

Permalink
Stabilize Ready::into_inner()
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored and rezwanahmedsami committed Aug 17, 2024
1 parent 99d389d commit 8405cfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/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 8405cfd

Please sign in to comment.