1
Fork 0

needless separation of impl blocks

This commit is contained in:
Tshepang Mbambo 2022-08-16 03:46:45 +02:00
parent 40336865fe
commit 3f379f6df5

View file

@ -56,9 +56,7 @@ cfg_if! {
pub fn new(v: T) -> Self { pub fn new(v: T) -> Self {
Atomic(Cell::new(v)) Atomic(Cell::new(v))
} }
}
impl<T: Copy> Atomic<T> {
#[inline] #[inline]
pub fn into_inner(self) -> T { pub fn into_inner(self) -> T {
self.0.into_inner() self.0.into_inner()