mirror of
https://github.com/MedzikUser/HomeDisk.git
synced 2024-08-14 21:46:53 +00:00
fix(clippy): fix clippy on rust nightly
This commit is contained in:
parent
8d25b1469c
commit
7e48259a9a
1 changed files with 3 additions and 4 deletions
|
@ -50,10 +50,9 @@ pub async fn handle(
|
|||
// create a directory where the file will be placed
|
||||
// e.g. path ==> `/secret/files/images/screenshot.png`
|
||||
// directories up to `{storage dir}/{username}/secret/files/images/` will be created
|
||||
match file_path.parent() {
|
||||
Some(prefix) => fs::create_dir_all(&prefix)
|
||||
.map_err(|err| ServerError::FsError(FsError::CreateFile(err.to_string())))?,
|
||||
None => (),
|
||||
if let Some(prefix) = file_path.parent() {
|
||||
fs::create_dir_all(&prefix)
|
||||
.map_err(|err| ServerError::FsError(FsError::CreateFile(err.to_string())))?
|
||||
}
|
||||
|
||||
// get multipart field
|
||||
|
|
Loading…
Reference in a new issue