Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpute authored Dec 29, 2023
1 parent f598436 commit ed3337f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions integer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion integer/src/repr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)),
Expand Down
2 changes: 0 additions & 2 deletions integer/tests/modular.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Check failure on line 136 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Test no-std

expected `{[email protected]:136:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`

Check failure on line 136 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Clippy

expected `{[email protected]:136:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`

for (a, b, c) in all_test_cases {

Check failure on line 138 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Test no-std

expected `{[email protected]:136:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`

Check failure on line 138 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Test no-std

expected `{[email protected]:136:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`

Check failure on line 138 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Clippy

expected `{[email protected]:136:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`

Check failure on line 138 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Clippy

expected `{[email protected]:136:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`
Expand Down Expand Up @@ -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)));

Check failure on line 205 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Test no-std

expected `{[email protected]:205:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`

Check failure on line 205 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Clippy

expected `{[email protected]:205:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`

for (a, b, c) in all_test_cases {

Check failure on line 207 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Test no-std

expected `{[email protected]:205:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`

Check failure on line 207 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Test no-std

expected `{[email protected]:205:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`

Check failure on line 207 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Clippy

expected `{[email protected]:205:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`

Check failure on line 207 in integer/tests/modular.rs

View workflow job for this annotation

GitHub Actions / Clippy

expected `{[email protected]:205:38}` to be a closure that returns `&(Reduced<'_>, Reduced<'_>, Reduced<'_>)`, but it returns `(&Reduced<'_>, &Reduced<'_>, &Reduced<'_>)`
Expand Down

0 comments on commit ed3337f

Please sign in to comment.