clippy wanted me to rename ConstPtrExt to Const

This commit is contained in:
missing 2022-05-17 09:57:07 -05:00
parent 623e23237a
commit d46bdc4a57
2 changed files with 3 additions and 0 deletions

View file

@ -138,6 +138,7 @@ use std::{
};
mod ptr_ext;
#[allow(clippy::wildcard_imports)]
use ptr_ext::*;
mod bad_things;

View file

@ -125,6 +125,7 @@ impl<T: ?Sized> PtrExt for *mut T {
}
}
#[allow(clippy::module_name_repetitions)]
pub trait ConstPtrExt: Sealed {
fn data_ptr(self) -> *const ();
@ -147,6 +148,7 @@ impl<T: ?Sized> ConstPtrExt for *const T {
}
}
#[allow(clippy::module_name_repetitions)]
pub trait MutPtrExt: Sealed {
fn data_ptr(self) -> *mut ();