mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
clippy: fixed various clippy warnings in components/scripts
(#31960)
* fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings
This commit is contained in:
parent
fd8235e409
commit
2f5a4354e7
7 changed files with 7 additions and 7 deletions
|
@ -1207,7 +1207,7 @@ impl CanvasState {
|
|||
if sw == 0 || sh == 0 {
|
||||
return Err(Error::IndexSize);
|
||||
}
|
||||
ImageData::new(global, sw.abs() as u32, sh.abs() as u32, None)
|
||||
ImageData::new(global, sw.unsigned_abs(), sh.unsigned_abs(), None)
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-context-2d-createimagedata
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue