You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0308]: mismatched types
--> benches/transpose_benchmarks.rs:21:59
|
21 | .throughput(|&&(width, height)| Throughput::Bytes((width * height * mem::size_of::<T>()) as u32))
| ----------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32`
| |
| arguments to this enum variant are incorrect
|
note: tuple variant defined here
--> /home/fabien/.cargo/registry/src/github.com-1ecc6299db9ec823/criterion-0.3.6/src/lib.rs:1343:5
|
1343 | Bytes(u64),
| ^^^^^
help: you can convert a `u32` to a `u64`
|
21 | .throughput(|&&(width, height)| Throughput::Bytes(((width * height * mem::size_of::<T>()) as u32).into()))
| + ++++++++
error[E0308]: mismatched types
--> benches/transpose_benchmarks.rs:47:59
|
47 | .throughput(|&&(width, height)| Throughput::Bytes((width * height * mem::size_of::<T>()) as u32))
| ----------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32`
| |
| arguments to this enum variant are incorrect
|
note: tuple variant defined here
--> /home/fabien/.cargo/registry/src/github.com-1ecc6299db9ec823/criterion-0.3.6/src/lib.rs:1343:5
|
1343 | Bytes(u64),
| ^^^^^
help: you can convert a `u32` to a `u64`
|
47 | .throughput(|&&(width, height)| Throughput::Bytes(((width * height * mem::size_of::<T>()) as u32).into()))
| + ++++++++
For more information about this error, try `rustc --explain E0308`.
warning: `transpose` (bench "transpose_benchmarks") generated 5 warnings
error: could not compile `transpose` due to 2 previous errors; 5 warnings emitted
warning: build failed, waiting for other jobs to finish...
The text was updated successfully, but these errors were encountered:
Error:
The text was updated successfully, but these errors were encountered: