File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ impl PublicKeyData for PublicKey {
31
31
& self . raw
32
32
}
33
33
34
- fn algorithm ( & self ) -> & SignatureAlgorithm {
34
+ fn algorithm ( & self ) -> & ' static SignatureAlgorithm {
35
35
self . alg
36
36
}
37
37
}
Original file line number Diff line number Diff line change @@ -527,7 +527,7 @@ impl PublicKeyData for KeyPair {
527
527
}
528
528
}
529
529
530
- fn algorithm ( & self ) -> & SignatureAlgorithm {
530
+ fn algorithm ( & self ) -> & ' static SignatureAlgorithm {
531
531
self . alg
532
532
}
533
533
}
@@ -747,7 +747,7 @@ impl PublicKeyData for SubjectPublicKeyInfo {
747
747
& self . subject_public_key
748
748
}
749
749
750
- fn algorithm ( & self ) -> & SignatureAlgorithm {
750
+ fn algorithm ( & self ) -> & ' static SignatureAlgorithm {
751
751
self . alg
752
752
}
753
753
}
@@ -766,7 +766,7 @@ pub trait PublicKeyData {
766
766
fn der_bytes ( & self ) -> & [ u8 ] ;
767
767
768
768
/// The algorithm used by the key pair
769
- fn algorithm ( & self ) -> & SignatureAlgorithm ;
769
+ fn algorithm ( & self ) -> & ' static SignatureAlgorithm ;
770
770
}
771
771
772
772
pub ( crate ) fn serialize_public_key_der ( key : & ( impl PublicKeyData + ?Sized ) , writer : DERWriter ) {
You can’t perform that action at this time.
0 commit comments