Skip to content

Commit da374a9

Browse files
committed
x509-cert: apply clippy Cow<'_, str>
1 parent ebf8e77 commit da374a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x509-cert/src/ext/pkix/name/dirstr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl<'a> der::DecodeValue<'a> for DirectoryString {
9090
impl DirectoryString {
9191
/// Returns `Borrowed` variant for UTF-8 compatible strings
9292
/// and `Owned` variant otherwise.
93-
pub fn value<'s>(&'s self) -> Cow<'s, str> {
93+
pub fn value(&self) -> Cow<'_, str> {
9494
match self {
9595
Self::PrintableString(s) => Cow::Borrowed(s.as_ref()),
9696
Self::TeletexString(s) => Cow::Borrowed(s.as_ref()),

0 commit comments

Comments
 (0)