Switch to the ruma meta-crate

This commit is contained in:
Jonas Platte
2020-06-05 18:19:26 +02:00
parent 3a5b292f22
commit 7526fd8602
14 changed files with 197 additions and 202 deletions

View File

@@ -29,7 +29,7 @@ pub fn increment(old: Option<&[u8]>) -> Option<Vec<u8>> {
pub fn generate_keypair(old: Option<&[u8]>) -> Option<Vec<u8>> {
Some(
old.map(|s| s.to_vec())
.unwrap_or_else(|| ruma_signatures::Ed25519KeyPair::generate().unwrap()),
.unwrap_or_else(|| ruma::signatures::Ed25519KeyPair::generate().unwrap()),
)
}