From bc973d25d1e44c34ee05c0a47639b7e352ddd5a9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 20 Oct 2017 20:05:35 -0700 Subject: lint fixes/workarounds --- src/register.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/register.rs b/src/register.rs index e31559b..9dd2291 100644 --- a/src/register.rs +++ b/src/register.rs @@ -319,7 +319,7 @@ impl SleepDirRegister { impl HyperRegister for SleepDirRegister { - fn has(&self, index: u64) -> Result { + fn has(&self, _index: u64) -> Result { // looks in bitfield unimplemented!() } @@ -397,7 +397,7 @@ impl HyperRegister for SleepDirRegister { let (left, right) = (self.tree_sleep.read(left)?, self.tree_sleep.read(right)?); let parent_hash = HyperRegister::hash_parent(&left[0..40], &right[0..40]); - self.tree_sleep.write(parent, &parent_hash[0..40]); + self.tree_sleep.write(parent, &parent_hash[0..40])?; parent = HyperRegister::tree_parent_index(index); } -- cgit v1.2.3