From 0b0d51a5da6002f4d8b71fafbb0587e1a5c8b5a7 Mon Sep 17 00:00:00 2001 From: MarkusTieger <77546847+MarkusTieger@users.noreply.github.com> Date: Tue, 21 Jan 2025 19:46:08 +0100 Subject: [PATCH] `ssh-key`: derive `Hash` trait for `Fingerprint` (#330) --- ssh-key/src/fingerprint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh-key/src/fingerprint.rs b/ssh-key/src/fingerprint.rs index 35c708e..8125b2e 100644 --- a/ssh-key/src/fingerprint.rs +++ b/ssh-key/src/fingerprint.rs @@ -43,7 +43,7 @@ use serde::{de, ser, Deserialize, Serialize}; /// /// When the `serde` feature of this crate is enabled, this type receives impls /// of [`Deserialize`][`serde::Deserialize`] and [`Serialize`][`serde::Serialize`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)] +#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord, Hash)] #[non_exhaustive] pub enum Fingerprint { /// Fingerprints computed using SHA-256.