Skip to content

Commit edba9e0

Browse files
committed
Bump rust version
1 parent fc384bf commit edba9e0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ members = ["bitwarden_license/*", "crates/*"]
77
# Update using `cargo set-version -p bitwarden-core <new-version>`
88
version = "1.0.0"
99
authors = ["Bitwarden Inc"]
10-
edition = "2021"
10+
edition = "2024"
1111
# Important: Changing rust-version should be considered a breaking change
12-
rust-version = "1.82"
12+
rust-version = "1.85"
1313
homepage = "https://bitwarden.com"
1414
repository = "https://github.com/bitwarden/sdk-internal"
1515
license-file = "LICENSE"

crates/bitwarden-exporters/src/cxf/import.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ fn group_credentials_by_type(credentials: Vec<Credential>) -> GroupedCredentials
224224
macro_rules! extract_credential {
225225
($field:ident, $variant:path, $type:ty) => {
226226
filter_credentials(&credentials, |c| match c {
227-
$variant(ref inner) => Some(inner.as_ref()),
227+
&$variant(ref inner) => Some(inner.as_ref()),
228228
_ => None,
229229
})
230230
};

crates/bitwarden-exporters/src/cxf/login.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn convert_otp_algorithm(algorithm: &OTPHashAlgorithm) -> TotpAlgorithm {
2626
OTPHashAlgorithm::Sha1 => TotpAlgorithm::Sha1,
2727
OTPHashAlgorithm::Sha256 => TotpAlgorithm::Sha256,
2828
OTPHashAlgorithm::Sha512 => TotpAlgorithm::Sha512,
29-
OTPHashAlgorithm::Unknown(ref algo) if algo == "steam" => TotpAlgorithm::Steam,
29+
OTPHashAlgorithm::Unknown(algo) if algo == "steam" => TotpAlgorithm::Steam,
3030
OTPHashAlgorithm::Unknown(_) | _ => TotpAlgorithm::Sha1, /* Default to SHA1 for unknown
3131
* algorithms */
3232
}

0 commit comments

Comments
 (0)