mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-08 14:40:37 +00:00
review: use doc comments to reference struct in safety comment
Co-authored-by: Christian Schwarz <christian@neon.tech>
This commit is contained in:
@@ -139,7 +139,7 @@ impl DerefMut for IoBufferMut {
|
||||
}
|
||||
}
|
||||
|
||||
// SAFETY: See [`IoBufferMut::advance_mut`]
|
||||
/// SAFETY: See [`IoBufferMut::advance_mut`]
|
||||
unsafe impl bytes::BufMut for IoBufferMut {
|
||||
#[inline]
|
||||
fn remaining_mut(&self) -> usize {
|
||||
@@ -183,8 +183,8 @@ fn panic_advance(idx: usize, len: usize) -> ! {
|
||||
);
|
||||
}
|
||||
|
||||
// Safety: [`IoBufferMut`] has exclusive ownership of the io buffer,
|
||||
// and the location remains stable even if [`Self`] is moved.
|
||||
/// Safety: [`IoBufferMut`] has exclusive ownership of the io buffer,
|
||||
/// and the location remains stable even if [`Self`] is moved.
|
||||
unsafe impl tokio_epoll_uring::IoBuf for IoBufferMut {
|
||||
fn stable_ptr(&self) -> *const u8 {
|
||||
self.ptr
|
||||
|
||||
Reference in New Issue
Block a user