Skip to content

Commit 98480d8

Browse files
authored
der: add Hash derive for StringOwned and Ia5String (#1973)
1 parent 0f0344a commit 98480d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

der/src/asn1/ia5_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ mod allocation {
110110
/// For UTF-8, use [`String`][`alloc::string::String`].
111111
///
112112
/// [International Alphabet No. 5 (IA5)]: https://en.wikipedia.org/wiki/T.50_%28standard%29
113-
#[derive(Clone, Eq, PartialEq, PartialOrd, Ord)]
113+
#[derive(Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
114114
pub struct Ia5String {
115115
/// Inner value
116116
inner: StringOwned,

der/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub(crate) mod allocating {
103103
use core::{borrow::Borrow, ops::Deref, str};
104104

105105
/// String newtype which respects the [`Length::max`] limit.
106-
#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
106+
#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord, Hash)]
107107
pub struct StringOwned {
108108
/// Inner value
109109
pub(crate) inner: String,

0 commit comments

Comments
 (0)