kmc-solid: Directly delegate to net::is_interrupted
in std::sys::solid::is_interrupted
This commit is contained in:
parent
2f5df8a94b
commit
dc37959ce8
@ -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 {
|
pub fn decode_error_kind(er: abi::ER) -> ErrorKind {
|
||||||
match er {
|
match er {
|
||||||
// Success
|
// Success
|
||||||
|
@ -74,7 +74,7 @@ pub fn unsupported_err() -> crate::io::Error {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_interrupted(code: i32) -> bool {
|
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 {
|
pub fn decode_error_kind(code: i32) -> crate::io::ErrorKind {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user