diff options
| author | Tomoaki Kawada <kawada@kmckk.co.jp> | 2023-09-01 11:43:48 +0900 |
|---|---|---|
| committer | Tomoaki Kawada <kawada@kmckk.co.jp> | 2023-09-01 11:53:15 +0900 |
| commit | dc37959ce858e1c3a872449cf289c9d9fa2efd2e (patch) | |
| tree | 5b69aac6b227bd5117bf4b3c2eb5fa64b2bd09bb | |
| parent | 2f5df8a94bb3c5fae4e3fcbfc8ef20f1f976cb19 (diff) | |
| download | rust-dc37959ce858e1c3a872449cf289c9d9fa2efd2e.tar.gz rust-dc37959ce858e1c3a872449cf289c9d9fa2efd2e.zip | |
kmc-solid: Directly delegate to `net::is_interrupted` in `std::sys::solid::is_interrupted`
| -rw-r--r-- | library/std/src/sys/solid/error.rs | 5 | ||||
| -rw-r--r-- | library/std/src/sys/solid/mod.rs | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/library/std/src/sys/solid/error.rs b/library/std/src/sys/solid/error.rs index d1877a8bcd2..547b4f3a984 100644 --- a/library/std/src/sys/solid/error.rs +++ b/library/std/src/sys/solid/error.rs @@ -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 diff --git a/library/std/src/sys/solid/mod.rs b/library/std/src/sys/solid/mod.rs index e7029174511..5af83653cf8 100644 --- a/library/std/src/sys/solid/mod.rs +++ b/library/std/src/sys/solid/mod.rs @@ -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 { |
