Move Queries::new out of the macro

This commit is contained in:
Joshua Nelson 2022-08-29 19:30:25 -05:00
parent 699bfa882b
commit d2c53caee2
2 changed files with 21 additions and 16 deletions

View file

@ -48,7 +48,7 @@ cfg_if! {
/// the native atomic types.
/// You should use this type through the `AtomicU64`, `AtomicUsize`, etc, type aliases
/// as it's not intended to be used separately.
#[derive(Debug)]
#[derive(Debug, Default)]
pub struct Atomic<T: Copy>(Cell<T>);
impl<T: Copy> Atomic<T> {