diff --git a/CHANGELOG.md b/CHANGELOG.md index b801bf1..b66b14f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Makiko changelog -## Unreleased +## 0.2.2 (2023-06-04) - Replace the `guard` crate with (now stabilized) `let else` expressions supported directly by the compiler. Fixes compatibility with Rust 1.70.0. diff --git a/Cargo.toml b/Cargo.toml index 5c5d3c3..bdab6ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "makiko" -version = "0.2.2-pre" +version = "0.2.2" edition = "2021" authors = ["Jan Špaček "] diff --git a/docs/tutorial/index.md b/docs/tutorial/index.md index 3c70af5..3b1f44b 100644 --- a/docs/tutorial/index.md +++ b/docs/tutorial/index.md @@ -26,7 +26,7 @@ And add the dependencies to Makiko and Tokio into your `Cargo.toml`: ```toml [dependencies] -makiko = "0.2.1" +makiko = "0.2" tokio = {version = "1.25", features = ["full"]} ``` diff --git a/src/pubkey/ecdsa.rs b/src/pubkey/ecdsa.rs index 05d08a0..1d52525 100644 --- a/src/pubkey/ecdsa.rs +++ b/src/pubkey/ecdsa.rs @@ -213,7 +213,7 @@ pub(super) fn decode_privkey(blob: &mut PacketDecode) -> Result::to_usize())?; let secret_scalar = generic_array::GenericArray::from_slice(&secret_scalar); - let secret_key = elliptic_curve::SecretKey::::from_bytes(&secret_scalar) + let secret_key = elliptic_curve::SecretKey::::from_bytes(secret_scalar) .map_err(|_| Error::Decode("ecdsa private key is invalid (bad bytes of private scalar)"))?; if secret_key.public_key() != public_key {