Fix for 1.84
All checks were successful
Build / build (push) Successful in 7m46s

This commit is contained in:
Mathieu Strypsteen 2025-01-10 20:43:17 +01:00
parent d450f7a605
commit 5a8835feba
2 changed files with 26 additions and 1 deletions

View file

@ -198,6 +198,26 @@ impl File {
self.0
}
pub fn lock(&self) -> io::Result<()> {
self.0
}
pub fn lock_shared(&self) -> io::Result<()> {
self.0
}
pub fn try_lock(&self) -> io::Result<bool> {
self.0
}
pub fn try_lock_shared(&self) -> io::Result<bool> {
self.0
}
pub fn unlock(&self) -> io::Result<()> {
self.0
}
pub fn truncate(&self, _size: u64) -> io::Result<()> {
self.0
}

View file

@ -15,7 +15,7 @@ impl<'a> IoSlice<'a> {
}
#[inline]
pub fn as_slice(&self) -> &[u8] {
pub const fn as_slice(&self) -> &'a [u8] {
self.0
}
}
@ -40,6 +40,11 @@ impl<'a> IoSliceMut<'a> {
self.0
}
#[inline]
pub const fn into_slice(self) -> &'a mut [u8] {
self.0
}
#[inline]
pub fn as_mut_slice(&mut self) -> &mut [u8] {
self.0