mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy fixes regarding clone_from (#32482)
This commit is contained in:
parent
fd472ebd0e
commit
0a641816bf
12 changed files with 35 additions and 19 deletions
|
@ -961,7 +961,7 @@ impl WebGLFramebuffer {
|
|||
return Err(WebGLError::InvalidOperation);
|
||||
}
|
||||
|
||||
*self.color_draw_buffers.borrow_mut() = buffers.clone();
|
||||
self.color_draw_buffers.borrow_mut().clone_from(&buffers);
|
||||
context.send_command(WebGLCommand::DrawBuffers(buffers));
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue