rust/hg-cpython/src/dirstate/status.rs
changeset 48744 6e930bc45aeb
parent 48454 473af5cbc209
child 49000 dd6b67d5c256
--- a/rust/hg-cpython/src/dirstate/status.rs	Mon Feb 14 18:57:12 2022 +0100
+++ b/rust/hg-cpython/src/dirstate/status.rs	Mon Feb 14 18:51:43 2022 +0100
@@ -10,7 +10,6 @@
 //! `rustext.dirstate.status`.
 
 use crate::{dirstate::DirstateMap, exceptions::FallbackError};
-use cpython::exc::OSError;
 use cpython::{
     exc::ValueError, ObjectProtocol, PyBytes, PyErr, PyList, PyObject,
     PyResult, PyTuple, Python, PythonObject, ToPyObject,
@@ -95,7 +94,6 @@
 
             PyErr::new::<FallbackError, _>(py, &as_string)
         }
-        StatusError::IO(e) => PyErr::new::<OSError, _>(py, e.to_string()),
         e => PyErr::new::<ValueError, _>(py, e.to_string()),
     }
 }