From fd4c4c52f25c5607f9f7415cc00c9e37ef8bdbfb Mon Sep 17 00:00:00 2001 From: Joseph Goulden Date: Tue, 10 Dec 2019 16:13:30 +0000 Subject: [PATCH] chore(test): remove deprecated try/r#try macro in favour of ? (#3163) --- core/tests/common.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/tests/common.rs b/core/tests/common.rs index 4e1b3040f..eca6a08cb 100644 --- a/core/tests/common.rs +++ b/core/tests/common.rs @@ -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}, @@ -147,9 +147,9 @@ impl PMMRable for TestElem { impl Writeable for TestElem { fn write(&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]) } }