Documentation cleanup #5

Manually merged
armin merged 10 commits from develop into master 2020-03-05 05:03:52 +00:00
2 changed files with 1 additions and 8 deletions
Showing only changes of commit 6a22429632 - Show all commits

View file

@ -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()})
}
}

View file

@ -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()
}
}