Skip to content

Commit 145fd9a

Browse files
committed
Remove explicit #[inline] annotations on destructor
1 parent d945d51 commit 145fd9a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ impl<T> RingBuffer<T> {
247247
}
248248
}
249249

250-
#[inline]
251250
unsafe fn abandon<T>(buffer: NonNull<RingBuffer<T>>) {
252251
// The two threads (producer and consumer) must observe the same order of accesses
253252
// to `is_abandoned`. This is accomplished with Acquire/Release.
@@ -359,7 +358,6 @@ pub struct Producer<T> {
359358
unsafe impl<T: Send> Send for Producer<T> {}
360359

361360
impl<T> Drop for Producer<T> {
362-
#[inline]
363361
fn drop(&mut self) {
364362
// Safety: The pointer is valid until after the second call to `abandon()`.
365363
unsafe { abandon(self.buffer) };
@@ -579,7 +577,6 @@ pub struct Consumer<T> {
579577
unsafe impl<T: Send> Send for Consumer<T> {}
580578

581579
impl<T> Drop for Consumer<T> {
582-
#[inline]
583580
fn drop(&mut self) {
584581
// Safety: The pointer is valid until after the second call to `abandon()`.
585582
unsafe { abandon(self.buffer) };

0 commit comments

Comments
 (0)