Clean up Rust by renaming functions, extracting logic, and auto into-ing errors
This commit is contained in:
parent
90e3cc9124
commit
419c29aa9d
1 changed files with 415 additions and 298 deletions
|
|
@ -23,10 +23,9 @@ pub async fn get_file_manifest(
|
|||
let mut transaction = state
|
||||
.database
|
||||
.create_readonly_transaction(&vault_id)
|
||||
.await
|
||||
.map_err(server_error)?;
|
||||
.await?;
|
||||
|
||||
Database::current_file_manifest(&mut transaction)
|
||||
Database::get_current_file_manifest(&mut transaction)
|
||||
.await
|
||||
.map(Json)
|
||||
.map_err(server_error)
|
||||
|
|
|
|||
Loading…
Reference in a new issue