Make Clippy test no longer unsound
This commit is contained in:
parent
8bfda7aafd
commit
600b027510
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue