From 69feeb21fe74b1ae009348544a4ef7820a273179 Mon Sep 17 00:00:00 2001 From: missing Date: Tue, 17 May 2022 09:57:07 -0500 Subject: [PATCH] clippy wanted me to rename `ConstPtrExt` to `Const` --- src/lib.rs | 1 + src/ptr_ext.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index fa64be6..75c11fd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -138,6 +138,7 @@ use std::{ }; mod ptr_ext; +#[allow(clippy::wildcard_imports)] use ptr_ext::*; mod bad_things; diff --git a/src/ptr_ext.rs b/src/ptr_ext.rs index 5537f62..90cb4a2 100644 --- a/src/ptr_ext.rs +++ b/src/ptr_ext.rs @@ -125,6 +125,7 @@ impl PtrExt for *mut T { } } +#[allow(clippy::module_name_repetitions)] pub trait ConstPtrExt: Sealed { fn data_ptr(self) -> *const (); @@ -147,6 +148,7 @@ impl ConstPtrExt for *const T { } } +#[allow(clippy::module_name_repetitions)] pub trait MutPtrExt: Sealed { fn data_ptr(self) -> *mut ();