We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d415e6 commit ae4c083Copy full SHA for ae4c083
1 file changed
src/hyperlight_common/src/virtq/ring.rs
@@ -342,7 +342,7 @@ impl RingCursor {
342
343
/// Advance to next position, wrapping around and toggling wrap counter if needed
344
#[inline]
345
- pub(crate) fn advance(&mut self) {
+ fn advance(&mut self) {
346
self.head += 1;
347
if self.head >= self.size {
348
self.head = 0;
@@ -352,7 +352,7 @@ impl RingCursor {
352
353
/// Advance by n positions using modular arithmetic.
354
355
- pub(crate) fn advance_by(&mut self, n: u16) {
+ fn advance_by(&mut self, n: u16) {
356
let new = self.head + n;
357
let wraps = new / self.size;
358
self.head = new % self.size;
0 commit comments