Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 68157c1

Browse files
committed
feat: impl std::fmt::Display for LocalName
1 parent db68514 commit 68157c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/types/local_name.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This Source Code Form is subject to the terms of the Mozilla Public
2+
// License, v. 2.0. If a copy of the MPL was not distributed with this
3+
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
15
use std::str::FromStr;
26

37
use x509_cert::attr::AttributeTypeAndValue;
@@ -27,6 +31,12 @@ impl LocalName {
2731
}
2832
}
2933

34+
impl std::fmt::Display for LocalName {
35+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
36+
f.write_str(&self.0)
37+
}
38+
}
39+
3040
impl FromStr for LocalName {
3141
type Err = ConstraintError;
3242

0 commit comments

Comments
 (0)