diff rust/hg-cpython/src/dirstate/dirstate_map.rs @ 52410:15011324a80b

rust: made the crate of hg-cpython importable The crate name is actually `rusthg`. This has the side effect of running the doctest of the `py_shared_iterator` macro which was really inconsistent, and after basic fixes, exposed that the macro itself was poorly scoped.
author Georges Racinet <georges.racinet@cloudcrane.io>
date Thu, 05 Dec 2024 18:58:56 +0100
parents 79e8118cd846
children
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs	Sat Nov 30 20:30:18 2024 +0100
+++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs	Thu Dec 05 18:58:56 2024 +0100
@@ -8,7 +8,7 @@
 //! Bindings for the `hg::dirstate::dirstate_map` file provided by the
 //! `hg-core` package.
 
-use std::cell::{RefCell, RefMut};
+use std::cell::RefMut;
 
 use cpython::{
     exc, PyBool, PyBytes, PyClone, PyDict, PyErr, PyList, PyNone, PyObject,