mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix mem_replace_with_default warnings (#31921)
This commit is contained in:
parent
7100465d1a
commit
66ad795014
7 changed files with 9 additions and 22 deletions
|
@ -95,10 +95,7 @@ impl CanvasRenderingContext2D {
|
|||
}
|
||||
|
||||
pub fn take_missing_image_urls(&self) -> Vec<ServoUrl> {
|
||||
mem::replace(
|
||||
&mut self.canvas_state.get_missing_image_urls().borrow_mut(),
|
||||
vec![],
|
||||
)
|
||||
std::mem::take(&mut self.canvas_state.get_missing_image_urls().borrow_mut())
|
||||
}
|
||||
|
||||
pub fn get_canvas_id(&self) -> CanvasId {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue