File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,6 @@ impl<T> RingBuffer<T> {
247247 }
248248}
249249
250- #[ inline]
251250unsafe 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> {
359358unsafe impl < T : Send > Send for Producer < T > { }
360359
361360impl < 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> {
579577unsafe impl < T : Send > Send for Consumer < T > { }
580578
581579impl < 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 ) } ;
You can’t perform that action at this time.
0 commit comments