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

View File

@ -34,13 +34,12 @@ impl<T> Ready<T> {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ready_into_inner)]
/// use std::future; /// use std::future;
/// ///
/// let a = future::ready(1); /// let a = future::ready(1);
/// assert_eq!(a.into_inner(), 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] #[must_use]
#[inline] #[inline]
pub fn into_inner(self) -> T { pub fn into_inner(self) -> T {