Skip to content

Commit

Permalink
Fix key type not supported by rand
Browse files Browse the repository at this point in the history
  • Loading branch information
kralka committed Feb 3, 2025
1 parent f367d6d commit 6c03b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ mod static_iter {
/// also implements a context manager which is guaranteed to call __exit__ and drop memory
/// owned by the corresponding ExampleIterator.
static STATIC_ITERATORS: std::sync::LazyLock<
std::sync::Mutex<HashMap<usize, ExampleIterator>>,
std::sync::Mutex<HashMap<i32, ExampleIterator>>,
> = std::sync::LazyLock::new(|| std::sync::Mutex::new(HashMap::new()));

#[pyclass]
pub struct RustIter {
/// Which ExampleIterator are we interacting with (unique id).
static_index: usize,
static_index: i32,
/// Read only value. For iteration we use this object as a context manager which allows us
/// to free resources in STATIC_ITERATORS on the call of __exit__.
///
Expand Down

0 comments on commit 6c03b5d

Please sign in to comment.