mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Use specific assertion for webdriver server
This commit is contained in:
parent
e4799cc997
commit
985ffa3342
1 changed files with 1 additions and 1 deletions
|
@ -832,7 +832,7 @@ impl Handler {
|
|||
};
|
||||
|
||||
// The compositor always sends RGB pixels.
|
||||
assert!(img.format == PixelFormat::RGB8, "Unexpected screenshot pixel format");
|
||||
assert_eq!(img.format, PixelFormat::RGB8, "Unexpected screenshot pixel format");
|
||||
let rgb = RgbImage::from_raw(img.width, img.height, img.bytes.to_vec()).unwrap();
|
||||
|
||||
let mut png_data = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue