Skip to content

Commit 9c4cf8d

Browse files
Make Clippy test no longer unsound
1 parent 96154d7 commit 9c4cf8d

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

Lines changed: 1 addition & 1 deletion
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)