Skip to content

Commit b86fedf

Browse files
authored
Merge pull request #81 from bitwarden/bitwarden/fix-msrv
Fix and enforce MSRV in CI
2 parents fb28d22 + 4916109 commit b86fedf

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
rust:
18-
- stable
18+
- 1.85.1
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: actions-rs/toolchain@v1
@@ -31,8 +31,7 @@ jobs:
3131
strategy:
3232
matrix:
3333
rust:
34-
# Once we settle on a MSRV we should add that here.
35-
- stable
34+
- 1.85.1
3635
steps:
3736
- uses: actions/checkout@v4
3837
- uses: actions-rs/toolchain@v1
@@ -56,7 +55,7 @@ jobs:
5655
strategy:
5756
matrix:
5857
rust:
59-
- stable
58+
- 1.85.1
6059
steps:
6160
- uses: actions/checkout@v4
6261
- uses: actions-rs/toolchain@v1
@@ -71,8 +70,7 @@ jobs:
7170
strategy:
7271
matrix:
7372
rust:
74-
# Once we settle on a MSRV we should add that here.
75-
- stable
73+
- 1.85.1
7674
steps:
7775
- uses: actions/checkout@v4
7876
- uses: actions-rs/toolchain@v1
@@ -87,7 +85,7 @@ jobs:
8785
strategy:
8886
matrix:
8987
rust:
90-
- stable
88+
- 1.85.1
9189
lang:
9290
- typescript
9391
- kotlin

passkey-client/src/extensions/prf.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ fn get_ctap_extension(
199199
// base64url encoding, or does not equal the id of some element of
200200
// allowCredentials after performing base64url decoding, then return a
201201
// DOMException whose name is “SyntaxError”.
202-
if let Some(record) = precomputed_eval_cred.as_ref()
203-
&& record.iter().any(|(k_bytes, _)| {
202+
if let Some(record) = precomputed_eval_cred.as_ref() {
203+
if record.iter().any(|(k_bytes, _)| {
204204
k_bytes.is_empty()
205205
|| allow_credentials
206206
.as_ref()
207207
.is_some_and(|allow| !allow.iter().any(|cred| cred.id == *k_bytes))
208-
})
209-
{
210-
return Err(WebauthnError::SyntaxError);
208+
}) {
209+
return Err(WebauthnError::SyntaxError);
210+
}
211211
}
212212

213213
let new_eval_by_cred = precomputed_eval_cred

rust-toolchain

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.85.1

0 commit comments

Comments
 (0)