Browse Source

made self.cursor a reference

rachel-rose 5 years ago
parent
commit
b0a04b7d93
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/crypto/merkle.rs

+ 1 - 1
src/crypto/merkle.rs

@@ -246,7 +246,7 @@ impl<Node: Hashable> Encodable for IncrementalWitness<Node> {
             len += c.encode(&mut s)?;
             len += c.encode(&mut s)?;
         }
         }
         len += self.cursor_depth.encode(&mut s)?;
         len += self.cursor_depth.encode(&mut s)?;
-        if let Some(v) = self.cursor {
+        if let Some(v) = &self.cursor {
             len += v.encode(&mut s)?;
             len += v.encode(&mut s)?;
         }
         }
         Ok(len)
         Ok(len)