mirror of https://github.com/rust-lang/rust.git
Stabilize `Ready::into_inner()`
This commit is contained in:
parent
ce20e15f01
commit
0732f7d5e1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue