fix lints

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry
2024-03-20 00:03:07 -04:00
parent b9d7185290
commit ea3834b19b
5 changed files with 28 additions and 40 deletions
+3 -5
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();