Skip to content

Commit db03685

Browse files
committed
Upgrade to 2024 edition; MSRV 1.85
Also includes clippy fixes so we're clean on Rust 1.85
1 parent fb37408 commit db03685

File tree

20 files changed

+35
-40
lines changed

20 files changed

+35
-40
lines changed

.github/workflows/ssh-cipher.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
rust:
33-
- 1.81.0 # MSRV
33+
- 1.85.0 # MSRV
3434
- stable
3535
target:
3636
- thumbv7em-none-eabi
@@ -49,7 +49,7 @@ jobs:
4949
strategy:
5050
matrix:
5151
rust:
52-
- 1.81.0 # MSRV
52+
- 1.85.0 # MSRV
5353
- stable
5454
steps:
5555
- uses: actions/checkout@v4

.github/workflows/ssh-derive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
matrix:
3030
rust:
31-
- 1.61.0 # MSRV
31+
- 1.85.0 # MSRV
3232
- stable
3333
steps:
3434
- uses: actions/checkout@v4

.github/workflows/ssh-encoding.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
matrix:
3030
rust:
31-
- 1.81.0 # MSRV
31+
- 1.85.0 # MSRV
3232
- stable
3333
target:
3434
- thumbv7em-none-eabi
@@ -47,7 +47,7 @@ jobs:
4747
strategy:
4848
matrix:
4949
rust:
50-
- 1.81.0 # MSRV
50+
- 1.85.0 # MSRV
5151
- stable
5252
steps:
5353
- uses: actions/checkout@v4

.github/workflows/ssh-key.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
strategy:
6161
matrix:
6262
rust:
63-
- 1.81.0 # MSRV
63+
- 1.85.0 # MSRV
6464
- stable
6565
target:
6666
- thumbv7em-none-eabi
@@ -80,7 +80,7 @@ jobs:
8080
strategy:
8181
matrix:
8282
rust:
83-
- 1.81.0 # MSRV
83+
- 1.85.0 # MSRV
8484
- stable
8585
steps:
8686
- uses: actions/checkout@v4

.github/workflows/ssh-protocol.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
matrix:
2727
rust:
28-
- 1.81.0 # MSRV
28+
- 1.85.0 # MSRV
2929
- stable
3030
steps:
3131
- uses: actions/checkout@v4

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- uses: dtolnay/rust-toolchain@stable
2323
with:
24-
toolchain: 1.81.0
24+
toolchain: 1.85.0
2525
components: clippy
2626
- run: cargo clippy --all-features
2727

ssh-cipher/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ repository = "https://github.com/RustCrypto/SSH"
1515
categories = ["cryptography", "no-std"]
1616
keywords = ["crypto", "encryption", "openssh", "ssh"]
1717
readme = "README.md"
18-
edition = "2021"
19-
rust-version = "1.81"
18+
edition = "2024"
19+
rust-version = "1.85"
2020

2121
[dependencies]
2222
cipher = "=0.5.0-pre.6"

ssh-derive/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ repository = "https://github.com/RustCrypto/SSH"
99
categories = ["authentication", "cryptography", "encoding", "no-std", "parser-implementations"]
1010
keywords = ["crypto", "certificate", "key", "openssh", "ssh"]
1111
readme = "README.md"
12-
edition = "2021"
13-
rust-version = "1.61"
12+
edition = "2024"
13+
rust-version = "1.85"
1414

1515
[lib]
1616
proc-macro = true

ssh-encoding/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ repository = "https://github.com/RustCrypto/SSH"
1212
categories = ["authentication", "cryptography", "encoding", "no-std", "parser-implementations"]
1313
keywords = ["crypto", "certificate", "key", "openssh", "ssh"]
1414
readme = "README.md"
15-
edition = "2021"
16-
rust-version = "1.81"
15+
edition = "2024"
16+
rust-version = "1.85"
1717

1818
[dependencies]
1919
base64ct = { version = "1.7", optional = true }

ssh-encoding/src/pem/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub trait DecodePem: Decode + PemLabel + Sized {
1313

1414
impl<T: Decode + PemLabel + Sized> DecodePem for T {
1515
fn decode_pem(pem: impl AsRef<[u8]>) -> Result<Self, Self::Error> {
16-
let mut reader = PemReader::new(pem.as_ref()).map_err(crate::Error::from)?;
16+
let mut reader = PemReader::new(pem.as_ref())?;
1717
Self::validate_pem_label(reader.type_label()).map_err(crate::Error::from)?;
1818

1919
let ret = Self::decode(&mut reader)?;

0 commit comments

Comments
 (0)