Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace the use of the deprecated item 'std::sync::atomic::ATOMIC_BOOL_INIT' #314

Merged
merged 1 commit into from Nov 2, 2019

Conversation

jeremyandrews
Copy link
Contributor

@jeremyandrews jeremyandrews commented Nov 2, 2019

Fix a warning during compilation, removing deprecated item:

warning: use of deprecated item 'std::sync::atomic::ATOMIC_BOOL_INIT': the `new` function is now preferred
  --> examples/benchmark.rs:13:47
   |
13 | use std::sync::atomic::{Ordering, AtomicBool, ATOMIC_BOOL_INIT};
   |                                               ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated item 'std::sync::atomic::ATOMIC_BOOL_INIT': the `new` function is now preferred
  --> examples/benchmark.rs:62:34
   |
62 | static CLIENT_DONE: AtomicBool = ATOMIC_BOOL_INIT;
   |                                  ^^^^^^^^^^^^^^^^ help: replace the use of the deprecated item: `AtomicBool::new(false)`

@whitequark whitequark merged commit 2b92dfc into smoltcp-rs:master Nov 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants