kmc-solid: Directly delegate to net::is_interrupted in std::sys::solid::is_interrupted
This commit is contained in:
parent
2f5df8a94b
commit
dc37959ce8
2 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue