mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fixed the .clone() warnings. (#31819)
This commit is contained in:
parent
95e69fe4ff
commit
9b26dca141
28 changed files with 76 additions and 93 deletions
|
@ -235,7 +235,7 @@ impl WebGLRenderbuffer {
|
|||
),
|
||||
);
|
||||
let samples = receiver.recv().unwrap();
|
||||
if sample_count < 0 || sample_count > samples.get(0).cloned().unwrap_or(0) {
|
||||
if sample_count < 0 || sample_count > samples.first().cloned().unwrap_or(0) {
|
||||
return Err(WebGLError::InvalidOperation);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue