Skip to content

Commit

Permalink
ds: 减少部分函数的可见性
Browse files Browse the repository at this point in the history
  • Loading branch information
icycrystal4 committed Nov 29, 2023
1 parent 750cb7c commit 32db0de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ds/src/mem/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl RingBuffer {
}
// 调用方确保buf.available() >= rs.len(),否则UB
#[inline]
pub(super) unsafe fn write_all(&mut self, rs: &RingSlice) {
unsafe fn write_all(&mut self, rs: &RingSlice) {
use std::ptr::copy_nonoverlapping as copy;
debug_assert!(rs.len() <= self.available());
// 写入的位置
Expand Down
2 changes: 1 addition & 1 deletion ds/src/mem/ring_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl RingSlice {
self.visit_segment_oft_len(oft, self.len(), v);
}
#[inline(always)]
pub(super) fn visit_segment_oft_len(
fn visit_segment_oft_len(
&self,
oft: usize,
len: usize,
Expand Down

0 comments on commit 32db0de

Please sign in to comment.