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 authored and GitHub committed 2020-10-23 21:08:04 +02:00
1 parent 4366fe366a
commit 5808f467c5
29 files changed
+63 -57

No files matched your search

@@ -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)
}
}