Make Clippy test no longer unsound

This commit is contained in:
Michael Goulet 2022-12-16 03:06:21 +00:00
parent 96154d7fa7
commit 9c4cf8d9d0

View file

@ -42,7 +42,7 @@ impl<T> StaticRef<T> {
impl<T> std::ops::Deref for StaticRef<T> {
type Target = T;
fn deref(&self) -> &'static T {
fn deref(&self) -> &T {
unsafe { &*self.ptr }
}
}