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

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