diff --git a/README.ja_JP.md b/README.ja_JP.md index 4f8edf97..3ad634a1 100644 --- a/README.ja_JP.md +++ b/README.ja_JP.md @@ -1,4 +1,4 @@ -[![minimum rustc: 1.80](https://img.shields.io/badge/minimum%20rustc-1.80-green?logo=rust)](https://www.whatrustisit.com) +[![minimum rustc: 1.83](https://img.shields.io/badge/minimum%20rustc-1.83-green?logo=rust)](https://www.whatrustisit.com) [![License: Apache 2.0](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](LICENSE) [![codecov](https://codecov.io/gh/bytedance/g3/graph/badge.svg?token=TSQCA4ALQM)](https://codecov.io/gh/bytedance/g3) diff --git a/README.md b/README.md index 91d9d037..5a9ac165 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![minimum rustc: 1.80](https://img.shields.io/badge/minimum%20rustc-1.80-green?logo=rust)](https://www.whatrustisit.com) +[![minimum rustc: 1.83](https://img.shields.io/badge/minimum%20rustc-1.83-green?logo=rust)](https://www.whatrustisit.com) [![License: Apache 2.0](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](LICENSE) [![codecov](https://codecov.io/gh/bytedance/g3/graph/badge.svg?token=TSQCA4ALQM)](https://codecov.io/gh/bytedance/g3) diff --git a/README.zh_CN.md b/README.zh_CN.md index d8ee352b..840b5b4c 100644 --- a/README.zh_CN.md +++ b/README.zh_CN.md @@ -1,4 +1,4 @@ -[![minimum rustc: 1.80](https://img.shields.io/badge/minimum%20rustc-1.80-green?logo=rust)](https://www.whatrustisit.com) +[![minimum rustc: 1.83](https://img.shields.io/badge/minimum%20rustc-1.83-green?logo=rust)](https://www.whatrustisit.com) [![License: Apache 2.0](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](LICENSE) [![codecov](https://codecov.io/gh/bytedance/g3/graph/badge.svg?token=TSQCA4ALQM)](https://codecov.io/gh/bytedance/g3) diff --git a/lib/g3-types/Cargo.toml b/lib/g3-types/Cargo.toml index a09e2737..e85bacea 100644 --- a/lib/g3-types/Cargo.toml +++ b/lib/g3-types/Cargo.toml @@ -3,7 +3,7 @@ name = "g3-types" version = "0.5.0" license.workspace = true edition.workspace = true -rust-version = "1.80.0" +rust-version = "1.83.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/lib/g3-types/src/net/error.rs b/lib/g3-types/src/net/error.rs index 11f5702b..1047ea9e 100644 --- a/lib/g3-types/src/net/error.rs +++ b/lib/g3-types/src/net/error.rs @@ -39,6 +39,8 @@ impl From for ConnectError { match e.kind() { io::ErrorKind::ConnectionRefused => return ConnectError::ConnectionRefused, io::ErrorKind::ConnectionReset => return ConnectError::ConnectionReset, + io::ErrorKind::HostUnreachable => return ConnectError::HostUnreachable, + io::ErrorKind::NetworkUnreachable => return ConnectError::NetworkUnreachable, io::ErrorKind::TimedOut => return ConnectError::TimedOut, _ => {} }