Stabilize `Ready::into_inner()`

This commit is contained in:
daxpedda 2023-10-08 10:54:15 +02:00
parent ce20e15f01
commit 0732f7d5e1
No known key found for this signature in database
GPG Key ID: 43D62A3EA388E46F
1 changed files with 1 additions and 2 deletions

View File

@ -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 {