Skip to content

Commit 1117076

Browse files
bump MSRV and move to editon2024
1 parent aafeeaa commit 1117076

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
RUST_BACKTRACE: 1
1717
RUSTFLAGS: -Dwarnings
1818
RUSTDOCFLAGS: -Dwarnings
19-
MSRV: "1.81"
19+
MSRV: "1.85"
2020
SCCACHE_CACHE_SIZE: "10G"
2121
IROH_FORCE_STAGING_RELAYS: "1"
2222

netwatch/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ keywords = ["networking", "interfaces"]
1010
edition = "2021"
1111

1212
# Sadly this also needs to be updated in .github/workflows/ci.yml
13-
rust-version = "1.81"
13+
rust-version = "1.85"
1414

1515
[lints]
1616
workspace = true

portmapper/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repository = "https://github.com/n0-computer/net-tools"
1010
keywords = ["portmapping", "pmp", "pcp", "upnp"]
1111

1212
# Sadly this also needs to be updated in .github/workflows/ci.yml
13-
rust-version = "1.81"
13+
rust-version = "1.85"
1414

1515
[lints]
1616
workspace = true

portmapper/src/current_mapping.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl<M: Mapping> futures_lite::Stream for CurrentMapping<M> {
175175
mut self: Pin<&mut Self>,
176176
cx: &mut std::task::Context<'_>,
177177
) -> Poll<Option<Self::Item>> {
178-
self.as_mut().poll(cx).map(Some)
178+
(*self.as_mut()).poll(cx).map(Some)
179179
}
180180
}
181181

@@ -202,8 +202,7 @@ mod tests {
202202
#[tokio::test]
203203
#[ntest::timeout(2500)]
204204
async fn report_renew_expire_report() {
205-
const TEST_PORT: NonZeroU16 = // SAFETY: it's clearly non zero
206-
unsafe { NonZeroU16::new_unchecked(9586) };
205+
const TEST_PORT: NonZeroU16 = NonZeroU16::new(9586).unwrap();
207206
const TEST_IP: std::net::Ipv4Addr = std::net::Ipv4Addr::LOCALHOST;
208207
let (mut c, mut watcher) = CurrentMapping::<M>::new(Default::default());
209208
let now = std::time::Instant::now();

0 commit comments

Comments
 (0)