diff --git a/src/durandal/fixed.rs b/src/durandal/fixed.rs index 9b078fc..a07a50a 100644 --- a/src/durandal/fixed.rs +++ b/src/durandal/fixed.rs @@ -27,6 +27,7 @@ macro_rules! define_fixed_type { /// Creates a value of this type with the integral portion `n`. #[inline] + #[allow(clippy::cast_lossless)] pub const fn from_int(n: $LT) -> Self { $Type(n as ($IT) << Self::FRACBITS) diff --git a/src/marathon/pict.rs b/src/marathon/pict.rs index bb9eab6..9196c5e 100644 --- a/src/marathon/pict.rs +++ b/src/marathon/pict.rs @@ -382,7 +382,7 @@ impl ReadRleData for u16 p: &mut usize, cmp: bool, len: usize, - out: &mut Vec) + out: &mut Vec) { if cmp { let d = u16b(&b[*p..*p + 2]); @@ -406,7 +406,7 @@ impl ReadRleData for u8 p: &mut usize, cmp: bool, len: usize, - out: &mut Vec) + out: &mut Vec) { if cmp { let d = b[*p]; diff --git a/src/marathon/wad.rs b/src/marathon/wad.rs index 28e6fbc..9152bdd 100644 --- a/src/marathon/wad.rs +++ b/src/marathon/wad.rs @@ -114,7 +114,7 @@ pub fn read_wad(b: &[u8]) -> ResultS let old_wad = match ver_wad { Ver::Base => true, - _ => false, + _ => false, }; let old_dat = ver_dat == 0;