diff --git a/spki/src/spki.rs b/spki/src/spki.rs index b7e4c9280..192b726a3 100644 --- a/spki/src/spki.rs +++ b/spki/src/spki.rs @@ -207,7 +207,7 @@ mod allocating { impl SubjectPublicKeyInfoOwned { /// Create a [`SubjectPublicKeyInfoOwned`] from any object that implements /// [`EncodePublicKey`]. - pub fn from_key(source: T) -> Result + pub fn from_key(source: &T) -> Result where T: EncodePublicKey, {