From 4aea4d054873b0167761a4b035ae57b0c322d215 Mon Sep 17 00:00:00 2001 From: AntiochP <30642645+antiochp@users.noreply.github.com> Date: Tue, 12 Sep 2017 13:20:01 -0400 Subject: [PATCH] fixes to allow benchmarks to be run for core (#122) cargo +nightly bench -p grin_core --- core/src/ser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ser.rs b/core/src/ser.rs index 5abc5c1ba..6deac0f48 100644 --- a/core/src/ser.rs +++ b/core/src/ser.rs @@ -187,13 +187,13 @@ pub trait Readable } /// Deserializes a Readeable from any std::io::Read implementation. -pub fn deserialize(mut source: &mut Read) -> Result { +pub fn deserialize(source: &mut Read) -> Result { let mut reader = BinReader { source: source }; T::read(&mut reader) } /// Serializes a Writeable into any std::io::Write implementation. -pub fn serialize(mut sink: &mut Write, thing: &W) -> Result<(), Error> { +pub fn serialize(sink: &mut Write, thing: &W) -> Result<(), Error> { let mut writer = BinWriter { sink: sink }; thing.write(&mut writer) }