Skip to content

Commit 600b027

Browse files
Make Clippy test no longer unsound
1 parent 8bfda7a commit 600b027

File tree

1 file changed

+1
-1
lines changed
  • src/tools/clippy/tests/ui/borrow_interior_mutable_const

1 file changed

+1
-1
lines changed

src/tools/clippy/tests/ui/borrow_interior_mutable_const/others.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl<T> StaticRef<T> {
4242
impl<T> std::ops::Deref for StaticRef<T> {
4343
type Target = T;
4444

45-
fn deref(&self) -> &'static T {
45+
fn deref(&self) -> &T {
4646
unsafe { &*self.ptr }
4747
}
4848
}

0 commit comments

Comments
 (0)