mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix needless borrow warnings (#31813)
This commit is contained in:
parent
694e86ecff
commit
3e63f8d6ee
42 changed files with 151 additions and 157 deletions
|
@ -55,7 +55,7 @@ impl CryptoMethods for Crypto {
|
|||
if data.len() > 65536 {
|
||||
return Err(Error::QuotaExceeded);
|
||||
}
|
||||
self.rng.borrow_mut().fill_bytes(&mut data);
|
||||
self.rng.borrow_mut().fill_bytes(data);
|
||||
let underlying_object = unsafe { input.underlying_object() };
|
||||
TypedArray::<ArrayBufferViewU8, *mut JSObject>::from(*underlying_object)
|
||||
.map_err(|_| Error::JSFailed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue