update tracking issue for lazy_cell_consume
This commit is contained in:
@@ -78,7 +78,7 @@ impl<T, F: FnOnce() -> T> LazyCell<T, F> {
|
|||||||
/// assert_eq!(&*lazy, "HELLO, WORLD!");
|
/// assert_eq!(&*lazy, "HELLO, WORLD!");
|
||||||
/// assert_eq!(LazyCell::into_inner(lazy).ok(), Some("HELLO, WORLD!".to_string()));
|
/// assert_eq!(LazyCell::into_inner(lazy).ok(), Some("HELLO, WORLD!".to_string()));
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "lazy_cell_consume", issue = "109736")]
|
#[unstable(feature = "lazy_cell_consume", issue = "125623")]
|
||||||
pub fn into_inner(this: Self) -> Result<T, F> {
|
pub fn into_inner(this: Self) -> Result<T, F> {
|
||||||
match this.state.into_inner() {
|
match this.state.into_inner() {
|
||||||
State::Init(data) => Ok(data),
|
State::Init(data) => Ok(data),
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ impl<T, F: FnOnce() -> T> LazyLock<T, F> {
|
|||||||
/// assert_eq!(&*lazy, "HELLO, WORLD!");
|
/// assert_eq!(&*lazy, "HELLO, WORLD!");
|
||||||
/// assert_eq!(LazyLock::into_inner(lazy).ok(), Some("HELLO, WORLD!".to_string()));
|
/// assert_eq!(LazyLock::into_inner(lazy).ok(), Some("HELLO, WORLD!".to_string()));
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "lazy_cell_consume", issue = "109736")]
|
#[unstable(feature = "lazy_cell_consume", issue = "125623")]
|
||||||
pub fn into_inner(mut this: Self) -> Result<T, F> {
|
pub fn into_inner(mut this: Self) -> Result<T, F> {
|
||||||
let state = this.once.state();
|
let state = this.once.state();
|
||||||
match state {
|
match state {
|
||||||
|
|||||||
Reference in New Issue
Block a user