Rollup merge of #105050 - WaffleLapkin:uselessrefign, r=jyn514
Remove useless borrows and derefs They are nothing more than noise. <sub>These are not all of them, but my clippy started crashing (stack overflow), so rip :(</sub>
This commit is contained in:
commit
1a2f79b82c
42 changed files with 157 additions and 158 deletions
|
@ -366,7 +366,7 @@ impl<CTX> HashStable<CTX> for [u8] {
|
|||
impl<T: HashStable<CTX>, CTX> HashStable<CTX> for Vec<T> {
|
||||
#[inline]
|
||||
fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) {
|
||||
(&self[..]).hash_stable(ctx, hasher);
|
||||
self[..].hash_stable(ctx, hasher);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -405,7 +405,7 @@ where
|
|||
{
|
||||
#[inline]
|
||||
fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) {
|
||||
(&self[..]).hash_stable(ctx, hasher);
|
||||
self[..].hash_stable(ctx, hasher);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -440,7 +440,7 @@ impl<CTX> HashStable<CTX> for str {
|
|||
impl<CTX> HashStable<CTX> for String {
|
||||
#[inline]
|
||||
fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher) {
|
||||
(&self[..]).hash_stable(hcx, hasher);
|
||||
self[..].hash_stable(hcx, hasher);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue