Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NULLx76 committed May 15, 2024
1 parent 3cb5ecb commit 3adfdc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ringbuffer_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,11 @@ pub unsafe trait RingBuffer<T>:
#[doc(hidden)]
unsafe fn ptr_buffer_size(rb: *const Self) -> usize;


/// Alias for [`enqueue`]
#[deprecated = "use enqueue instead"]
#[inline]
fn push(&mut self, value: T) {
self.enqueue(value)
self.enqueue(value);
}

/// Adds a value onto the buffer.
Expand Down

1 comment on commit 3adfdc3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.