clippy wanted me to rename ConstPtrExt
to Const
This commit is contained in:
parent
8f27dc99e7
commit
69feeb21fe
|
@ -138,6 +138,7 @@ use std::{
|
|||
};
|
||||
|
||||
mod ptr_ext;
|
||||
#[allow(clippy::wildcard_imports)]
|
||||
use ptr_ext::*;
|
||||
mod bad_things;
|
||||
|
||||
|
|
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue