mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix len_zero warnings (#31935)
This commit is contained in:
parent
49c6b2668f
commit
c3b6d40f90
5 changed files with 7 additions and 7 deletions
|
@ -4136,7 +4136,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
Float32ArrayOrUnrestrictedFloatSequence::Float32Array(v) => v.to_vec(),
|
||||
Float32ArrayOrUnrestrictedFloatSequence::UnrestrictedFloatSequence(v) => v,
|
||||
};
|
||||
if values.len() < 1 {
|
||||
if values.is_empty() {
|
||||
// https://github.com/KhronosGroup/WebGL/issues/2700
|
||||
return self.webgl_error(InvalidValue);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue