Skip to content

Commit 4704236

Browse files
committed
Bump MSRV to 1.83 (for File::create_new())
1 parent d2b1a4b commit 4704236

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/checkout@v6
3838
- uses: dtolnay/rust-toolchain@master
3939
with:
40-
toolchain: 1.75.0
40+
toolchain: 1.83.0
4141
- run: cargo check --all-features --bins
4242

4343
lint:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "oxish"
33
version = "0.1.0"
44
edition = "2021"
5-
rust-version = "1.75"
5+
rust-version = "1.83"
66
license = "Apache-2.0 OR MIT"
77

88
[dependencies]

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
use std::{io, net::SocketAddr, str};
1+
use core::net::SocketAddr;
2+
use std::{io, str};
23

34
use aws_lc_rs::digest;
45
use thiserror::Error;

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::net::{Ipv4Addr, SocketAddr};
1+
use core::net::{Ipv4Addr, SocketAddr};
22

33
use clap::Parser;
44
use listenfd::ListenFd;

src/proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ impl<'a> PacketBuilderWithPayload<'a> {
177177
}
178178

179179
let padding_start = buf.len();
180-
buf.extend(iter::repeat(0).take(padding_len)); // padding
180+
buf.extend(iter::repeat_n(0, padding_len)); // padding
181181
if let Some(padding) = buf.get_mut(padding_start..) {
182182
if rand::fill(padding).is_err() {
183183
return Err(Error::Unreachable("failed to get random padding"));

0 commit comments

Comments
 (0)