File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -223,20 +223,20 @@ impl<T: ?Sized> BorrowMut<T> for T {
223
223
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
224
224
impl < T : ?Sized > Borrow < T > for & T {
225
225
fn borrow ( & self ) -> & T {
226
- & * * self
226
+ self
227
227
}
228
228
}
229
229
230
230
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
231
231
impl < T : ?Sized > Borrow < T > for & mut T {
232
232
fn borrow ( & self ) -> & T {
233
- & * * self
233
+ self
234
234
}
235
235
}
236
236
237
237
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
238
238
impl < T : ?Sized > BorrowMut < T > for & mut T {
239
239
fn borrow_mut ( & mut self ) -> & mut T {
240
- & mut * * self
240
+ self
241
241
}
242
242
}
Original file line number Diff line number Diff line change @@ -590,7 +590,7 @@ mod impls {
590
590
#[ inline( always) ]
591
591
#[ rustc_diagnostic_item = "noop_method_clone" ]
592
592
fn clone ( & self ) -> Self {
593
- * self
593
+ self
594
594
}
595
595
}
596
596
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ impl<T: ?Sized> const Deref for &T {
158
158
159
159
#[ rustc_diagnostic_item = "noop_method_deref" ]
160
160
fn deref ( & self ) -> & T {
161
- * self
161
+ self
162
162
}
163
163
}
164
164
@@ -171,7 +171,7 @@ impl<T: ?Sized> const Deref for &mut T {
171
171
type Target = T ;
172
172
173
173
fn deref ( & self ) -> & T {
174
- * self
174
+ self
175
175
}
176
176
}
177
177
@@ -280,7 +280,7 @@ pub trait DerefMut: ~const Deref + PointeeSized {
280
280
#[ rustc_const_unstable( feature = "const_deref" , issue = "88955" ) ]
281
281
impl < T : ?Sized > const DerefMut for & mut T {
282
282
fn deref_mut ( & mut self ) -> & mut T {
283
- * self
283
+ self
284
284
}
285
285
}
286
286
You can’t perform that action at this time.
0 commit comments