diff rust/hg-pyo3/src/exceptions.rs @ 52795:827889802d11

rust-pyo3-revlog: nodemap filling accessor This follows closely the original version in `hg-cpython`, with perhaps room for improvement to spare the caller with obscure and scary calls to `except()`.
author Georges Racinet <georges.racinet@cloudcrane.io>
date Wed, 25 Dec 2024 14:00:34 +0100
parents 918239b55b3a
children 5e3e8876fd9e
line wrap: on
line diff
--- a/rust/hg-pyo3/src/exceptions.rs	Wed Dec 25 13:37:26 2024 +0100
+++ b/rust/hg-pyo3/src/exceptions.rs	Wed Dec 25 14:00:34 2024 +0100
@@ -54,7 +54,6 @@
     mercurial_py_errors::RevlogError::new_err(e.to_string().into_bytes())
 }
 
-#[allow(dead_code)]
 pub fn nodemap_error(err: NodeMapError) -> PyErr {
     match err {
         NodeMapError::MultipleResults => {