Clippy run

This commit is contained in:
R.Chavignat committed 2018-03-13 00:07:06 +01:00
1 parent 76a787455a
commit a4d7d1a4fc
2 files changed
+4 -11

No files matched your search

+2 -6
View File
@@ -41,7 +41,7 @@ tags!{
// palette-color images (PhotometricInterpretation 3)
ColorMap 320; // TODO add support
Compression 259; // TODO add support for 2 and 32773
Copyright 33432; // TODO add support
Copyright 33_432; // TODO add support
DateTime 306; // TODO add support
ExtraSamples 338; // TODO add support
FillOrder 266; // TODO add support
@@ -137,11 +137,7 @@ impl ::std::fmt::Debug for Entry {
impl Entry {
pub fn new(type_: Type, count: u32, offset: [u8; 4]) -> Entry {
Entry {
type_: type_,
count: count,
offset: offset
}
Entry { type_, count, offset }
}
/// Returns a mem_reader for the offset/value field
+2 -5
View File
@@ -97,7 +97,7 @@ impl PackBitsReader {
}
Ok((buffer.len(), PackBitsReader {
buffer: io::Cursor::new(buffer),
byte_order: byte_order
byte_order
}))
}
}
@@ -152,10 +152,7 @@ pub struct SmartReader<R> where R: Read + Seek {
impl<R> SmartReader<R> where R: Read + Seek {
/// Wraps a reader
pub fn wrap(reader: R, byte_order: ByteOrder) -> SmartReader<R> {
SmartReader {
reader: reader,
byte_order: byte_order
}
SmartReader { reader, byte_order }
}
}