From 8044422747903d370c09ad893dd8ce6c548ce136 Mon Sep 17 00:00:00 2001 From: Avril Date: Thu, 8 Oct 2020 02:56:13 +0100 Subject: [PATCH] arg fix --- Cargo.toml | 2 +- src/rsa/private.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 29baafe..7fa7cdd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cryptohelpers" -version = "1.5.0" +version = "1.5.1" license= "MIT" description = "Collection of helpers and simplifying functions for cryptography things" authors = ["Avril "] diff --git a/src/rsa/private.rs b/src/rsa/private.rs index dc961b8..6b31bfc 100644 --- a/src/rsa/private.rs +++ b/src/rsa/private.rs @@ -158,7 +158,7 @@ impl RsaPrivateKey } /// Try to create an instance from PEM, requesting password if needed - pub fn from_pem(&self, pem: impl AsRef, pw: F) -> Result + pub fn from_pem(pem: impl AsRef, pw: F) -> Result where F: FnOnce() -> Option { let pem = pem.as_ref().as_bytes();