rust/hg-cpython/src/revlog.rs
changeset 46431 645ee7225fab
parent 46428 5893706af3de
child 46432 18a261b11b20
--- a/rust/hg-cpython/src/revlog.rs	Sat Jan 30 18:30:11 2021 +0800
+++ b/rust/hg-cpython/src/revlog.rs	Mon Jan 25 11:48:47 2021 +0100
@@ -64,7 +64,7 @@
         let nt = opt.as_ref().unwrap();
         let idx = &*self.cindex(py).borrow();
         let node = node_from_py_bytes(py, &node)?;
-        nt.find_bin(idx, (&node).into()).map_err(|e| nodemap_error(py, e))
+        nt.find_bin(idx, node.into()).map_err(|e| nodemap_error(py, e))
     }
 
     /// same as `get_rev()` but raises a bare `error.RevlogError` if node