Rollup merge of #100608 - tshepang:needless-separation, r=TaKO8Ki

needless separation of impl blocks
This commit is contained in:
Matthias Krüger 2022-08-17 12:32:54 +02:00 committed by GitHub
commit d956734f9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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