Skip to content

Commit ae4c083

Browse files
committed
fix(virtq): make advance API of cursor private
Signed-off-by: Tomasz Andrzejak <andreiltd@gmail.com>
1 parent 6d415e6 commit ae4c083

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/hyperlight_common/src/virtq

src/hyperlight_common/src/virtq/ring.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl RingCursor {
342342

343343
/// Advance to next position, wrapping around and toggling wrap counter if needed
344344
#[inline]
345-
pub(crate) fn advance(&mut self) {
345+
fn advance(&mut self) {
346346
self.head += 1;
347347
if self.head >= self.size {
348348
self.head = 0;
@@ -352,7 +352,7 @@ impl RingCursor {
352352

353353
/// Advance by n positions using modular arithmetic.
354354
#[inline]
355-
pub(crate) fn advance_by(&mut self, n: u16) {
355+
fn advance_by(&mut self, n: u16) {
356356
let new = self.head + n;
357357
let wraps = new / self.size;
358358
self.head = new % self.size;

0 commit comments

Comments
 (0)