diff --git a/python-oxidized-importer/src/importer.rs b/python-oxidized-importer/src/importer.rs index 98123b232..1a1c9a18d 100644 --- a/python-oxidized-importer/src/importer.rs +++ b/python-oxidized-importer/src/importer.rs @@ -1285,7 +1285,7 @@ pub fn replace_meta_path_importers<'a, 'p>( resources_state: Box>, importer_state_callback: Option, ) -> PyResult<&'p PyCell> { - let mut state = get_module_state(oxidized_importer)?; + let state = get_module_state(oxidized_importer)?; let sys_module = py.import("sys")?; diff --git a/python-oxidized-importer/src/lib.rs b/python-oxidized-importer/src/lib.rs index bbdd1b74f..4b09c1c5e 100644 --- a/python-oxidized-importer/src/lib.rs +++ b/python-oxidized-importer/src/lib.rs @@ -180,7 +180,7 @@ fn module_init(py: Python, m: &PyModule) -> PyResult<()> { return Err(PyImportError::new_err("module requires Python 3.8+")); } - let mut state = get_module_state(m)?; + let state = get_module_state(m)?; state.initialized = false;