Skip to content

Commit

Permalink
needless separation of impl blocks
Browse files Browse the repository at this point in the history
tshepang committed Aug 16, 2022
1 parent 4033686 commit 3f379f6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/rustc_data_structures/src/sync.rs
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 3f379f6

Please sign in to comment.