Skip to content

Commit

Permalink
Fixed isize issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tbetcke committed Sep 9, 2024
1 parent 773b6df commit 4b946ea
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/parsort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ unsafe impl<T: ParallelSortable> Equivalence for UniqueItem<T> {
UserDatatype::structured::<UncommittedDatatypeRef>(
&[1, 1, 1],
&[
offset_of!(UniqueItem<T>, value) as isize,
offset_of!(UniqueItem<T>, rank) as isize,
offset_of!(UniqueItem<T>, index) as isize,
(offset_of!(UniqueItem<T>, value) as i64)

Check failure on line 68 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks (--features "strict")

useless conversion to the same type: `i64`

Check failure on line 68 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

useless conversion to the same type: `i64`

Check failure on line 68 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks (--features "strict")

useless conversion to the same type: `i64`

Check failure on line 68 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

useless conversion to the same type: `i64`
.try_into()
.unwrap(),
(offset_of!(UniqueItem<T>, rank) as i64).try_into().unwrap(),

Check failure on line 71 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks (--features "strict")

useless conversion to the same type: `i64`

Check failure on line 71 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

useless conversion to the same type: `i64`

Check failure on line 71 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks (--features "strict")

useless conversion to the same type: `i64`

Check failure on line 71 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

useless conversion to the same type: `i64`
(offset_of!(UniqueItem<T>, index) as i64)

Check failure on line 72 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks (--features "strict")

useless conversion to the same type: `i64`

Check failure on line 72 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

useless conversion to the same type: `i64`

Check failure on line 72 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks (--features "strict")

useless conversion to the same type: `i64`

Check failure on line 72 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

useless conversion to the same type: `i64`
.try_into()
.unwrap(),
],
&[

Check failure on line 76 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks (--features "strict")

this expression creates a reference which is immediately dereferenced by the compiler

Check failure on line 76 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

this expression creates a reference which is immediately dereferenced by the compiler

Check failure on line 76 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks (--features "strict")

this expression creates a reference which is immediately dereferenced by the compiler

Check failure on line 76 in src/parsort.rs

View workflow job for this annotation

GitHub Actions / Rust style checks

this expression creates a reference which is immediately dereferenced by the compiler
UncommittedUserDatatype::contiguous(1, &<T as Equivalence>::equivalent_datatype())
Expand Down

0 comments on commit 4b946ea

Please sign in to comment.