We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TempDir::new()
1 parent de0fc42 commit 14f4965Copy full SHA for 14f4965
src/imp/security_framework.rs
@@ -85,7 +85,7 @@ pub struct Identity {
85
86
impl Identity {
87
pub fn from_pkcs8(pem: &[u8], key: &[u8]) -> Result<Identity, Error> {
88
- let dir = TempDir::new().unwrap();
+ let dir = TempDir::new().map_err(|_| Error(base::Error::from(errSecIO)))?;
89
let keychain = keychain::CreateOptions::new()
90
.password("password")
91
.create(dir.path().join("identity.keychain"))?;
0 commit comments