Make Substrate compile with latest nightly (#7381)

* Try to get it compiling

* One more

* Make stable happy

* Make stable even more happy ;)

* Update shell.nix
This commit is contained in:
Bastian Köcher
2020-10-23 21:08:04 +02:00
committed by GitHub
parent 4366fe366a
commit 5808f467c5
29 changed files with 63 additions and 57 deletions
@@ -536,10 +536,10 @@ macro_rules! implement_fixed {
}
}
impl<P: PerThing> From<P> for $name {
impl<P: PerThing> From<P> for $name where P::Inner: FixedPointOperand {
fn from(p: P) -> Self {
let accuracy = P::ACCURACY.saturated_into();
let value = p.deconstruct().saturated_into();
let accuracy = P::ACCURACY;
let value = p.deconstruct();
$name::saturating_from_rational(value, accuracy)
}
}