aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-10-20 20:05:35 -0700
committerBryan Newbold <bnewbold@robocracy.org>2017-10-20 20:05:35 -0700
commitbc973d25d1e44c34ee05c0a47639b7e352ddd5a9 (patch)
tree36fafae99cb214700745f8c93900a446f48e5d4f
parent1940f7b082bfd958ae9e4155f62afbd8f0100fd8 (diff)
downloadgeniza-bc973d25d1e44c34ee05c0a47639b7e352ddd5a9.tar.gz
geniza-bc973d25d1e44c34ee05c0a47639b7e352ddd5a9.zip
lint fixes/workarounds
-rw-r--r--src/register.rs4
1 files 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<bool> {
+ fn has(&self, _index: u64) -> Result<bool> {
// 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);
}