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 resolves compilation errors related to the
battery
anduom
dependencies such as:This should fix #11.