fix lints

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-20 00:03:07 -04:00 committed by June
parent fa942aedd7
commit f7e8054a00
5 changed files with 28 additions and 40 deletions

View file

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