mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
Update parity-scale-codec to 2.0 (#7994)
* update cargo.toml * use 2.0 in mmmr
This commit is contained in:
committed by
GitHub
parent
bea4a6524d
commit
f48296e9ad
@@ -338,9 +338,9 @@ macro_rules! implement_per_thing {
|
||||
fn encode_as(&self) -> &Self::As {
|
||||
&self.0
|
||||
}
|
||||
fn decode_from(x: Self::As) -> Self {
|
||||
fn decode_from(x: Self::As) -> Result<Self, codec::Error> {
|
||||
// Saturates if `x` is more than `$max` internally.
|
||||
Self::from_parts(x)
|
||||
Ok(Self::from_parts(x))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user