Skip to content

Commit cf275a3

Browse files
committed
Bump MSRV to 1.70
1 parent 1d92130 commit cf275a3

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ possible intended.
1818
keywords = ["io", "socket", "network"]
1919
categories = ["api-bindings", "network-programming"]
2020
edition = "2021"
21-
rust-version = "1.63"
21+
rust-version = "1.70"
2222
include = [
2323
"Cargo.toml",
2424
"LICENSE-APACHE",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ feature flag.
6666

6767
# Minimum Supported Rust Version (MSRV)
6868

69-
Socket2 uses 1.63.0 as MSRV.
69+
Socket2 uses 1.70.0 as MSRV.
7070

7171
# License
7272

src/sys/unix.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,11 +2828,6 @@ impl crate::Socket {
28282828
#[cfg(all(feature = "all", any(target_os = "linux", target_os = "android")))]
28292829
#[repr(transparent)]
28302830
pub struct SockFilter {
2831-
// For some reason Rust 1.63 thinks this field is unused, while it's clearly
2832-
// used in `SockFilter::new`. This issue seems fixed in later Rust versions,
2833-
// but we still need to support 1.63, adding allow(dead_code) ignores the
2834-
// issue.
2835-
#[allow(dead_code)]
28362831
filter: libc::sock_filter,
28372832
}
28382833

0 commit comments

Comments
 (0)