Skip to content

Commit

Permalink
Auto merge of rust-lang#116528 - daxpedda:stabilize-ready-into-inner,…
Browse files Browse the repository at this point in the history
… r=dtolnay

Stabilize `Ready::into_inner()`

This PR stabilizes `Ready::into_inner()`.

Tracking issue: rust-lang#101196.
Implementation PR: rust-lang#101189.

Closes rust-lang#101196.
  • Loading branch information
bors committed Aug 16, 2024
2 parents 9952947 + b8f7f38 commit 88927ac
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 88927ac

Please sign in to comment.