Address clippy warnings

This commit is contained in:
topjohnwu
2024-12-09 03:34:51 -08:00
committed by John Wu
parent 9e26b73813
commit 2654382c43
3 changed files with 16 additions and 13 deletions

View File

@@ -405,8 +405,8 @@ macro_rules! const_assert_eq {
}
// Assert ABI layout
const_assert_eq!(mem::size_of::<&Utf8CStr>(), mem::size_of::<[usize; 2]>());
const_assert_eq!(mem::align_of::<&Utf8CStr>(), mem::align_of::<[usize; 2]>());
const_assert_eq!(size_of::<&Utf8CStr>(), size_of::<[usize; 2]>());
const_assert_eq!(align_of::<&Utf8CStr>(), align_of::<[usize; 2]>());
// File system path extensions types
@@ -471,7 +471,7 @@ impl<'a> FsPathBuf<'a> {
}
}
impl<'a> Deref for FsPathBuf<'a> {
impl Deref for FsPathBuf<'_> {
type Target = FsPath;
fn deref(&self) -> &FsPath {
@@ -479,7 +479,7 @@ impl<'a> Deref for FsPathBuf<'a> {
}
}
impl<'a> DerefMut for FsPathBuf<'a> {
impl DerefMut for FsPathBuf<'_> {
fn deref_mut(&mut self) -> &mut Self::Target {
FsPath::from_mut(&mut self.0)
}