mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
WIP: Dedupe dependencies
This commit is contained in:
parent
8eb2a53e20
commit
6354cd9a5e
11 changed files with 49 additions and 144 deletions
|
@ -14,7 +14,7 @@ base64 = "0.6"
|
|||
cookie = "0.10"
|
||||
euclid = "0.17"
|
||||
hyper = "0.10"
|
||||
image = "0.18"
|
||||
image = "0.19"
|
||||
ipc-channel = "0.10"
|
||||
log = "0.4"
|
||||
msg = {path = "../msg"}
|
||||
|
|
|
@ -836,7 +836,7 @@ impl Handler {
|
|||
let rgb = RgbImage::from_raw(img.width, img.height, img.bytes.to_vec()).unwrap();
|
||||
|
||||
let mut png_data = Vec::new();
|
||||
DynamicImage::ImageRgb8(rgb).save(&mut png_data, ImageFormat::PNG).unwrap();
|
||||
DynamicImage::ImageRgb8(rgb).write_to(&mut png_data, ImageFormat::PNG).unwrap();
|
||||
|
||||
let encoded = base64::encode(&png_data);
|
||||
Ok(WebDriverResponse::Generic(ValueResponse::new(encoded.to_json())))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue