\#[allow] false positive lint

This commit is contained in:
Nathan Whitaker 2022-08-22 20:29:59 -07:00
parent ca9b0fd836
commit bd4a4435cc
1 changed files with 2 additions and 0 deletions

View File

@ -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>