mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
fix: unused mem import (#31608)
This commit is contained in:
parent
0bc685ed97
commit
af3583ade8
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ impl ImageBytes {
|
|||
ImageBytes::InProgress(ref mut bytes) => bytes,
|
||||
ImageBytes::Complete(_) => panic!("attempted modification of complete image bytes"),
|
||||
};
|
||||
std::mem::take(own_bytes)
|
||||
mem::take(own_bytes)
|
||||
};
|
||||
let bytes = Arc::new(bytes);
|
||||
*self = ImageBytes::Complete(bytes.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue