fix lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
fa942aedd7
commit
f7e8054a00
5 changed files with 28 additions and 40 deletions
|
@ -1878,11 +1878,9 @@ impl Service {
|
|||
RoomMessageEventContent::text_plain(result)
|
||||
},
|
||||
ServerCommand::BackupDatabase => {
|
||||
let mut result = tokio::task::spawn_blocking(move || {
|
||||
match services().globals.db.backup() {
|
||||
Ok(_) => String::new(),
|
||||
Err(e) => (*e).to_string(),
|
||||
}
|
||||
let mut result = tokio::task::spawn_blocking(move || match services().globals.db.backup() {
|
||||
Ok(_) => String::new(),
|
||||
Err(e) => (*e).to_string(),
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use std::collections::BTreeMap;
|
||||
use std::error::Error;
|
||||
use std::{collections::BTreeMap, error::Error};
|
||||
|
||||
use async_trait::async_trait;
|
||||
use ruma::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue