mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
chore(test): remove deprecated try/r#try macro in favour of ? (#3163)
This commit is contained in:
parent
6a54334576
commit
fd4c4c52f2
1 changed files with 4 additions and 4 deletions
|
@ -14,8 +14,8 @@
|
||||||
|
|
||||||
//! Common test functions
|
//! Common test functions
|
||||||
|
|
||||||
use grin_core::core::{Block, BlockHeader, KernelFeatures, Transaction};
|
|
||||||
use grin_core::core::hash::DefaultHashable;
|
use grin_core::core::hash::DefaultHashable;
|
||||||
|
use grin_core::core::{Block, BlockHeader, KernelFeatures, Transaction};
|
||||||
use grin_core::libtx::{
|
use grin_core::libtx::{
|
||||||
build::{self, input, output},
|
build::{self, input, output},
|
||||||
proof::{ProofBuild, ProofBuilder},
|
proof::{ProofBuild, ProofBuilder},
|
||||||
|
@ -147,9 +147,9 @@ impl PMMRable for TestElem {
|
||||||
|
|
||||||
impl Writeable for TestElem {
|
impl Writeable for TestElem {
|
||||||
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), ser::Error> {
|
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), ser::Error> {
|
||||||
r#try!(writer.write_u32(self.0[0]));
|
writer.write_u32(self.0[0])?;
|
||||||
r#try!(writer.write_u32(self.0[1]));
|
writer.write_u32(self.0[1])?;
|
||||||
r#try!(writer.write_u32(self.0[2]));
|
writer.write_u32(self.0[2])?;
|
||||||
writer.write_u32(self.0[3])
|
writer.write_u32(self.0[3])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue