From 32db0deeaa515c72fba66e89eb15a50acee5800a Mon Sep 17 00:00:00 2001 From: icycrystal4 Date: Wed, 29 Nov 2023 18:58:53 +0800 Subject: [PATCH] =?UTF-8?q?ds:=20=E5=87=8F=E5=B0=91=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E7=9A=84=E5=8F=AF=E8=A7=81=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ds/src/mem/buffer.rs | 2 +- ds/src/mem/ring_slice.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ds/src/mem/buffer.rs b/ds/src/mem/buffer.rs index 3e149974b..53d7a18cc 100644 --- a/ds/src/mem/buffer.rs +++ b/ds/src/mem/buffer.rs @@ -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()); // 写入的位置 diff --git a/ds/src/mem/ring_slice.rs b/ds/src/mem/ring_slice.rs index 3ccd919d0..6bc2a8f58 100644 --- a/ds/src/mem/ring_slice.rs +++ b/ds/src/mem/ring_slice.rs @@ -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,