A bunch of clippy fixes

This commit is contained in:
Jonathan Behrens committed 2023-08-20 13:32:08 -07:00
1 parent daa0e3eabf
commit 60f866c119
11 files changed
+59 -61

No files matched your search

+1 -1
View File
@@ -537,7 +537,7 @@ impl Entry {
Ok(UnsignedBig(u64::from(buf[0])))
}),
Type::SBYTE => self.decode_offset(self.count, bo, bigtiff, limits, reader, |reader| {
Ok(SignedBig(i64::from(reader.read_i8()? as i8)))
Ok(SignedBig(i64::from(reader.read_i8()?)))
}),
Type::SHORT => self.decode_offset(self.count, bo, bigtiff, limits, reader, |reader| {
Ok(UnsignedBig(u64::from(reader.read_u16()?)))