Skip to content

Commit dc37959

Browse files
committed
kmc-solid: Directly delegate to net::is_interrupted in std::sys::solid::is_interrupted
1 parent 2f5df8a commit dc37959

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

library/std/src/sys/solid/error.rs

-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ pub fn error_name(er: abi::ER) -> Option<&'static str> {
3131
}
3232
}
3333

34-
#[inline]
35-
fn is_interrupted(er: abi::ER) -> bool {
36-
false
37-
}
38-
3934
pub fn decode_error_kind(er: abi::ER) -> ErrorKind {
4035
match er {
4136
// Success

library/std/src/sys/solid/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub fn unsupported_err() -> crate::io::Error {
7474

7575
#[inline]
7676
pub fn is_interrupted(code: i32) -> bool {
77-
error::is_interrupted(code)
77+
net::is_interrupted(code)
7878
}
7979

8080
pub fn decode_error_kind(code: i32) -> crate::io::ErrorKind {

0 commit comments

Comments
 (0)