svartalf / rust-battop

Interactive batteries viewer
https://crates.io/crates/battop
Apache License 2.0
470 stars 20 forks source link

Bump battery crate #12

Open notlesh opened 3 years ago

notlesh commented 3 years ago

This resolves compilation errors related to the battery and uom dependencies such as:

error[E0277]: the trait bound `J: Integer` is not satisfied
   --> /home/stephen/.cargo/registry/src/github.com-1ecc6299db9ec823/uom-0.23.1/src/si/mod.rs:144:26
    |
144 |                       val: Quantity<
    |  __________________________^
145 | |                         Dimension<L = L, M = M, T = T, I = I, Th = Th, N = N, J = J, Kind = $a>,
146 | |                         Ur,
147 | |                         V,
148 | |                     >,
    | |_____________________^ the trait `Integer` is not implemented for `J`
...
213 |       impl_from!(Kind, AngleKind);
    |       ---------------------------- in this macro invocation
    |
   ::: /home/stephen/.cargo/registry/src/github.com-1ecc6299db9ec823/uom-0.23.1/src/system.rs:236:20
    |
236 |           pub struct Quantity<D, U, V>
    |                      -------- required by a bound in this
237 |           where
238 |               D: Dimension + ?Sized,
    |                  --------- required by this bound in `si::Quantity`
    |
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider further restricting type parameter `J`
    |
141 |                 V: ::num_traits::Num + ::Conversion<V>, J: typenum::Integer
    |                                                       ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 119 previous errors

This should fix #11.

DRSDavidSoft commented 2 years ago

Tested and works, not sure why it isn't merged yet

co-anton commented 2 years ago

Tested and works for me too