signatures: Simplify imports

This commit is contained in:
Jonas Platte 2021-11-27 01:17:59 +01:00
parent d15c877ad1
commit 881f64fd64
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -8,11 +8,10 @@ use std::{
}; };
use base64::{decode_config, encode_config, Config, STANDARD_NO_PAD, URL_SAFE_NO_PAD}; use base64::{decode_config, encode_config, Config, STANDARD_NO_PAD, URL_SAFE_NO_PAD};
use ed25519_dalek::Digest;
use ruma_identifiers::{EventId, RoomVersionId, ServerName, UserId}; use ruma_identifiers::{EventId, RoomVersionId, ServerName, UserId};
use ruma_serde::{CanonicalJsonObject, CanonicalJsonValue}; use ruma_serde::{CanonicalJsonObject, CanonicalJsonValue};
use serde_json::{from_str as from_json_str, to_string as to_json_string}; use serde_json::{from_str as from_json_str, to_string as to_json_string};
use sha2::Sha256; use sha2::{digest::Digest, Sha256};
use crate::{ use crate::{
keys::{KeyPair, PublicKeyMap}, keys::{KeyPair, PublicKeyMap},