From bd4a4435cc0b4b0be9a6e3dcceed8c65840378d3 Mon Sep 17 00:00:00 2001 From: Nathan Whitaker Date: Mon, 22 Aug 2022 20:29:59 -0700 Subject: [PATCH] \#[allow] false positive lint --- src/eyreish/ptr.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eyreish/ptr.rs b/src/eyreish/ptr.rs index 4309c5a..c8d63d2 100644 --- a/src/eyreish/ptr.rs +++ b/src/eyreish/ptr.rs @@ -58,6 +58,7 @@ where } } +#[allow(explicit_outlives_requirements)] #[repr(transparent)] /// A raw pointer that represents a shared borrow of its pointee pub(crate) struct Ref<'a, T> @@ -120,6 +121,7 @@ where } } +#[allow(explicit_outlives_requirements)] #[repr(transparent)] /// A raw pointer that represents a unique borrow of its pointee pub(crate) struct Mut<'a, T>