mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 01:13:11 +00:00
Make Clippy test no longer unsound
This commit is contained in:
parent
96154d7fa7
commit
9c4cf8d9d0
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user