mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update to rustc 2016-06-14.
This commit is contained in:
parent
ebf412a2aa
commit
0addbe36b0
6 changed files with 186 additions and 188 deletions
|
@ -91,7 +91,7 @@ pub fn detect_image_format(buffer: &[u8]) -> Result<ImageFormat, &str> {
|
|||
|
||||
fn is_gif(buffer: &[u8]) -> bool {
|
||||
match buffer {
|
||||
[b'G', b'I', b'F', b'8', n, b'a', ..] if n == b'7' || n == b'9' => true,
|
||||
&[b'G', b'I', b'F', b'8', n, b'a', ..] if n == b'7' || n == b'9' => true,
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue