kmc-solid: Directly delegate to net::is_interrupted in std::sys::solid::is_interrupted

This commit is contained in:
Tomoaki Kawada 2023-09-01 11:43:48 +09:00
parent 2f5df8a94b
commit dc37959ce8
2 changed files with 1 additions and 6 deletions

View File

@ -31,11 +31,6 @@ pub fn error_name(er: abi::ER) -> Option<&'static str> {
}
}
#[inline]
fn is_interrupted(er: abi::ER) -> bool {
false
}
pub fn decode_error_kind(er: abi::ER) -> ErrorKind {
match er {
// Success

View File

@ -74,7 +74,7 @@ pub fn unsupported_err() -> crate::io::Error {
#[inline]
pub fn is_interrupted(code: i32) -> bool {
error::is_interrupted(code)
net::is_interrupted(code)
}
pub fn decode_error_kind(code: i32) -> crate::io::ErrorKind {