mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 03:27:58 +00:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user