fix: unused mem import (#31608)

This commit is contained in:
eri 2024-03-10 21:20:42 +01:00 committed by GitHub
parent 0bc685ed97
commit af3583ade8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());