Fix formatting

This commit is contained in:
ruffson committed 2020-09-26 17:22:59 +02:00
1 parent 6353f71e28
commit d00ab0cc61
3 files changed
+4 -8

No files matched your search

-1
View File
@@ -958,7 +958,6 @@ impl<R: Read + Seek> Decoder<R> {
let mut res_img = Vec::with_capacity(offsets[0] as usize);
for (idx, offset) in offsets.iter().enumerate() {
if bytes[idx] as usize > self.limits.intermediate_buffer_size {
return Err(TiffError::LimitsExceeded);
}
+3 -6
View File
@@ -364,16 +364,13 @@ impl JpegReader {
buffer: io::Cursor::new(jpeg_data),
byte_order: order,
})
},
None => {
Ok(JpegReader {
}
None => Ok(JpegReader {
buffer: io::Cursor::new(segment),
byte_order: order,
})
}),
}
}
}
}
impl Read for JpegReader {
+1 -1
View File
@@ -6,9 +6,9 @@
//! # Related Links
//! * <https://www.adobe.io/open/standards/TIFF.html> - The TIFF specification
extern crate jpeg;
extern crate miniz_oxide;
extern crate weezl;
extern crate jpeg;
mod bytecast;
pub mod decoder;