diff --git a/integer/src/lib.rs b/integer/src/lib.rs index 548d68f..ada34e6 100644 --- a/integer/src/lib.rs +++ b/integer/src/lib.rs @@ -134,6 +134,7 @@ mod third_party; mod ubig; // All the public items from third_party will be exposed +#[allow(unused_imports)] pub use third_party::*; // Re-export types for fast division diff --git a/integer/src/repr.rs b/integer/src/repr.rs index 52b50b5..8b59d74 100644 --- a/integer/src/repr.rs +++ b/integer/src/repr.rs @@ -167,7 +167,8 @@ impl Repr { 1 | 2 => { TypedReprRef::RefSmall(double_word(self.data.inline[0], self.data.inline[1])) } - _ => TypedReprRef::RefLarge(slice::from_raw_parts( // need Rust 1.64 for const + _ => TypedReprRef::RefLarge(slice::from_raw_parts( + // need Rust 1.64 for const self.data.heap.0, self.data.heap.1, )), diff --git a/integer/tests/modular.rs b/integer/tests/modular.rs index 354cb31..90aaf7a 100644 --- a/integer/tests/modular.rs +++ b/integer/tests/modular.rs @@ -133,7 +133,6 @@ fn test_add_sub() { let all_test_cases = test_cases .iter() - .map(|(a, b, c)| (a, b, c)) .chain(test_cases.iter().map(|(a, b, c)| (b, a, c))); for (a, b, c) in all_test_cases { @@ -203,7 +202,6 @@ fn test_mul() { let all_test_cases = test_cases .iter() - .map(|(a, b, c)| (a, b, c)) .chain(test_cases.iter().map(|(a, b, c)| (b, a, c))); for (a, b, c) in all_test_cases {