Skip to content

Remove usage of deprecated ONCE_INIT#1281

Merged
carllerche merged 1 commit intotokio-rs:masterfrom
taiki-e:remove-deprecated-once-init
Jul 10, 2019
Merged

Remove usage of deprecated ONCE_INIT#1281
carllerche merged 1 commit intotokio-rs:masterfrom
taiki-e:remove-deprecated-once-init

Conversation

@taiki-e
Copy link
Member

@taiki-e taiki-e commented Jul 10, 2019

Motivation

std::sync::ONCE_INIT will be deprecated in Rust 1.38 (rust-lang/rust#61757).
The alternative (Once::new()) seems to have stabilized at the same time as AtomicUsize::new() (rust-lang/rust#61746 (comment)).

Solution

Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@carllerche carllerche merged commit e552562 into tokio-rs:master Jul 10, 2019
@taiki-e taiki-e deleted the remove-deprecated-once-init branch July 11, 2019 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants