fix fmt and clippy warnings
This commit is contained in:
parent
972caacdc2
commit
804105479c
3 changed files with 73 additions and 47 deletions
|
@ -5,7 +5,12 @@ use ruma::{
|
|||
EventId, MilliSecondsSinceUnixEpoch, ServerName, ServerSigningKeyId,
|
||||
};
|
||||
use rustls::{ServerCertVerifier, WebPKIVerifier};
|
||||
use std::{collections::{BTreeMap, HashMap}, path::{PathBuf}, sync::{Arc, RwLock}, time::{Duration, Instant}};
|
||||
use std::{
|
||||
collections::{BTreeMap, HashMap},
|
||||
path::PathBuf,
|
||||
sync::{Arc, RwLock},
|
||||
time::{Duration, Instant},
|
||||
};
|
||||
use tokio::sync::Semaphore;
|
||||
use trust_dns_resolver::TokioAsyncResolver;
|
||||
|
||||
|
@ -279,7 +284,7 @@ impl Globals {
|
|||
r
|
||||
}
|
||||
|
||||
pub fn get_media_file(&self, key: &Vec<u8>) -> PathBuf {
|
||||
pub fn get_media_file(&self, key: &[u8]) -> PathBuf {
|
||||
let mut r = PathBuf::new();
|
||||
r.push(self.config.database_path.clone());
|
||||
r.push("media");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue