Skip to content

Commit 8329327

Browse files
committed
remove version deprecation
1 parent 4eb9aa1 commit 8329327

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

common/authenticator-requests/src/version.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub enum AuthenticatorVersion {
2222
/// introduced in dorina-patched release (1.6.1)
2323
V5,
2424

25-
/// introduced in yet to be named release, currently aiming for Leerdammer (1.22.0)
25+
/// introduced in mozzarella release (1.22.0)
2626
V6,
2727

2828
/// an unknown, future, variant that can be present if running outdated software
@@ -32,9 +32,6 @@ pub enum AuthenticatorVersion {
3232
impl AuthenticatorVersion {
3333
pub const LATEST: Self = Self::V6;
3434

35-
#[deprecated(
36-
note = "the final version of V6 won't be known until appropriate release is scheduled. after that happens From<semver::Version> trait will have to be adjusted"
37-
)]
3835
pub const fn release_version(&self) -> semver::Version {
3936
match self {
4037
AuthenticatorVersion::V1 => semver::Version::new(1, 1, 5),
@@ -206,8 +203,9 @@ mod tests {
206203
assert_eq!(AuthenticatorVersion::V5, "1.7.0".into());
207204
assert_eq!(AuthenticatorVersion::V5, "1.16.11".into());
208205
assert_eq!(AuthenticatorVersion::V5, "1.17.0".into());
209-
assert_eq!(AuthenticatorVersion::V5, "1.20.0".into());
210-
assert_eq!(AuthenticatorVersion::V6, "1.21.0".into());
206+
assert_eq!(AuthenticatorVersion::V5, "1.21.0".into());
211207
assert_eq!(AuthenticatorVersion::V6, "1.22.0".into());
208+
assert_eq!(AuthenticatorVersion::V6, "1.22.1".into());
209+
assert_eq!(AuthenticatorVersion::V6, "1.23.0".into());
212210
}
213211
}

0 commit comments

Comments
 (0)