mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
clippy: Fix a few problems in components/scripts
(#31959)
* fixed various clippy warnings * fixed various clippy warnings
This commit is contained in:
parent
00c4d798c9
commit
52a74287fc
5 changed files with 6 additions and 6 deletions
|
@ -953,7 +953,7 @@ impl CanvasState {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-context-2d-globalalpha
|
||||
pub fn set_global_alpha(&self, alpha: f64) {
|
||||
if !alpha.is_finite() || alpha > 1.0 || alpha < 0.0 {
|
||||
if !alpha.is_finite() || !(0.0..=1.0).contains(&alpha) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue