quebin31 / muso

muso: music sorter
GNU General Public License v3.0
91 stars 5 forks source link

error[E0308]: mismatched types #15

Open yurivict opened 1 year ago

yurivict commented 1 year ago
error[E0308]: mismatched types
  --> /wrkdirs/usr/ports/audio/muso/work/muso-2.0.0/cargo-crates/lexical-core-0.7.4/src/atof/algorithm/bhcomp.rs:62:24
   |
62 |     let bytes = bits / Limb::BITS;
   |                        ^^^^^^^^^^ expected `usize`, found `u32`

error[E0277]: cannot divide `usize` by `u32`
  --> /wrkdirs/usr/ports/audio/muso/work/muso-2.0.0/cargo-crates/lexical-core-0.7.4/src/atof/algorithm/bhcomp.rs:62:22
   |
62 |     let bytes = bits / Limb::BITS;
   |                      ^ no implementation for `usize / u32`
   |
   = help: the trait `Div<u32>` is not implemented for `usize`
   = help: the following other types implement trait `Div<Rhs>`:
             <&'a f32 as Div<f32>>
             <&'a f64 as Div<f64>> 
             <&'a i128 as Div<i128>>
             <&'a i16 as Div<i16>>
             <&'a i32 as Div<i32>>
             <&'a i64 as Div<i64>>
             <&'a i8 as Div<i8>>
             <&'a isize as Div<isize>>
           and 54 others

Version: 2.0.0 rust-1.66.0 FreeBSD 13.1

Scrumplex commented 1 year ago

This was fixed in main with #14.

But there hasn't been a new release yet. Maybe you can backport that change on your end.