Documentation cleanup #5
2 changed files with 1 additions and 8 deletions
|
@ -106,10 +106,3 @@ impl Certificate {
|
|||
Ok(sealedbox::seal(message, pk))
|
||||
}
|
||||
}
|
||||
|
||||
impl <T: AsRef<Path>> From<T> for Certificate {
|
||||
fn from(path: T) -> Self {
|
||||
Certificate::new_from_cbor(&path)
|
||||
.expect(&format!{"Could not read certificate from {}", path.as_ref().display()})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ impl Keyring {
|
|||
where T: AsRef<Path>
|
||||
{
|
||||
Keyring {
|
||||
certificate: Certificate::from(certificate_path),
|
||||
certificate: Certificate::new_from_cbor(certificate_path).unwrap(),
|
||||
known_keys: HashMap::new()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue