replace .len() == 0 with is_empty()

closes #7198
This commit is contained in:
João Oliveira 2015-08-14 03:55:02 +01:00
parent f5e97ef1b5
commit 9c11781880
20 changed files with 25 additions and 29 deletions

View file

@ -44,7 +44,7 @@ fn byte_swap_and_premultiply(data: &mut [u8]) {
}
pub fn load_from_memory(buffer: &[u8]) -> Option<Image> {
if buffer.len() == 0 {
if buffer.is_empty() {
return None;
}
@ -120,5 +120,3 @@ fn is_gif(buffer: &[u8]) -> bool {
_ => false
}
}