WIP: Dedupe dependencies

This commit is contained in:
Bastien Orivel 2018-07-12 22:07:19 +02:00 committed by Glenn Watson
parent 8eb2a53e20
commit 6354cd9a5e
11 changed files with 49 additions and 144 deletions

View file

@ -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"}

View file

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