diff rust/hg-pyo3/src/exceptions.rs @ 52805:acae91fad6be

rust-pyo3-revlog: standalone NodeTree class This is the actual first usage of `PyShareable`, but perhaps it could be not so much necessary in this case (we could just reference the `InnerRevlog` python object, and we do not need to keep additional state).
author Georges Racinet <georges.racinet@cloudcrane.io>
date Sun, 22 Dec 2024 17:02:09 +0100
parents 1b9907575768
children adf91dfe6c04
line wrap: on
line diff
--- a/rust/hg-pyo3/src/exceptions.rs	Sun Dec 22 21:37:29 2024 +0100
+++ b/rust/hg-pyo3/src/exceptions.rs	Sun Dec 22 17:02:09 2024 +0100
@@ -59,7 +59,6 @@
     mercurial_py_errors::RevlogError::new_err((None::<String>,))
 }
 
-#[allow(dead_code)]
 pub fn rev_not_in_index(rev: UncheckedRevision) -> PyErr {
     PyValueError::new_err(format!("revlog index out of range: {}", rev))
 }