mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
removed mutable compile warnings (#31822)
Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> Co-authored-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local>
This commit is contained in:
parent
99bad9d9b8
commit
77f5175efc
3 changed files with 5 additions and 5 deletions
|
@ -51,7 +51,7 @@ impl CryptoMethods for Crypto {
|
|||
if !is_integer_buffer(array_type) {
|
||||
return Err(Error::TypeMismatch);
|
||||
} else {
|
||||
let mut data = unsafe { input.as_mut_slice() };
|
||||
let data = unsafe { input.as_mut_slice() };
|
||||
if data.len() > 65536 {
|
||||
return Err(Error::QuotaExceeded);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue