mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
bump base64 from 0.10 to 0.21 (#29804)
* bump base64 from 0.10 to 0.21 * Fix configuration of bitflags --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
ad0fa77456
commit
4c8db6af87
10 changed files with 103 additions and 86 deletions
|
@ -17,7 +17,7 @@ mod actions;
|
|||
mod capabilities;
|
||||
|
||||
use crate::actions::{InputSourceState, PointerInputState};
|
||||
use base64;
|
||||
use base64::Engine;
|
||||
use capabilities::ServoCapabilities;
|
||||
use compositing::ConstellationMsg;
|
||||
use crossbeam_channel::{after, unbounded, Receiver, Sender};
|
||||
|
@ -1603,7 +1603,7 @@ impl Handler {
|
|||
.write_to(&mut png_data, ImageFormat::Png)
|
||||
.unwrap();
|
||||
|
||||
Ok(base64::encode(png_data.get_ref()))
|
||||
Ok(base64::engine::general_purpose::STANDARD.encode(png_data.get_ref()))
|
||||
}
|
||||
|
||||
fn handle_take_screenshot(&self) -> WebDriverResult<WebDriverResponse> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue