mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-06-13 05:37:39 +02:00
Apply rustfmt.
Because apparently CLion's default formatting is not the same as rustfmt for some reason.
This commit is contained in:
@ -10,9 +10,9 @@ use serde_json::Value;
|
||||
use crate::{
|
||||
api::{ApiResult, EmptyResult, JsonResult, JsonUpcase, Notify, NumberOrString, UpdateType},
|
||||
auth::{ClientIp, Headers, Host},
|
||||
CONFIG,
|
||||
db::{DbConn, DbPool, models::*},
|
||||
db::{models::*, DbConn, DbPool},
|
||||
util::SafeString,
|
||||
CONFIG,
|
||||
};
|
||||
|
||||
const SEND_INACCESSIBLE_MSG: &str = "Send does not exist or is no longer available";
|
||||
@ -226,10 +226,9 @@ async fn post_send_file(data: Form<UploadData<'_>>, headers: Headers, conn: DbCo
|
||||
let file_path = folder_path.join(&file_id);
|
||||
tokio::fs::create_dir_all(&folder_path).await?;
|
||||
|
||||
|
||||
match data.persist_to(&file_path).await {
|
||||
Ok(_result) => {}
|
||||
Err(_error) => data.move_copy_to(&file_path).await?
|
||||
Err(_error) => data.move_copy_to(&file_path).await?,
|
||||
}
|
||||
|
||||
let mut data_value: Value = serde_json::from_str(&send.data)?;
|
||||
|
Reference in New Issue
Block a user