Skip to content

Commit

Permalink
chore(test): remove deprecated try/r#try macro in favour of ? (#3163)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephGoulden authored and antiochp committed Dec 10, 2019
1 parent 6a54334 commit fd4c4c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

//! Common test functions
use grin_core::core::{Block, BlockHeader, KernelFeatures, Transaction};
use grin_core::core::hash::DefaultHashable;
use grin_core::core::{Block, BlockHeader, KernelFeatures, Transaction};
use grin_core::libtx::{
build::{self, input, output},
proof::{ProofBuild, ProofBuilder},
Expand Down Expand Up @@ -147,9 +147,9 @@ impl PMMRable for TestElem {

impl Writeable for TestElem {
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), ser::Error> {
r#try!(writer.write_u32(self.0[0]));
r#try!(writer.write_u32(self.0[1]));
r#try!(writer.write_u32(self.0[2]));
writer.write_u32(self.0[0])?;
writer.write_u32(self.0[1])?;
writer.write_u32(self.0[2])?;
writer.write_u32(self.0[3])
}
}
Expand Down

0 comments on commit fd4c4c5

Please sign in to comment.