Update to rustc 2016-06-14.

This commit is contained in:
Ms2ger 2016-06-15 00:27:36 +01:00
parent ebf412a2aa
commit 0addbe36b0
6 changed files with 186 additions and 188 deletions

View file

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