diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-09-20 01:56:08 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-09-20 01:56:08 +0000 |
commit | 8f932897bed0a51a279369dab75afe05cc0bd830 (patch) | |
tree | b93087d474a6e3bd441c4f1bf571a0aa7231399d /src/file_upload.rs | |
parent | Get rid of some unused dependencies (diff) | |
download | miniserve-8f932897bed0a51a279369dab75afe05cc0bd830.tar.gz miniserve-8f932897bed0a51a279369dab75afe05cc0bd830.zip |
Tidy up some imports
Diffstat (limited to '')
-rw-r--r-- | src/file_upload.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/file_upload.rs b/src/file_upload.rs index cf214b8..2275c73 100644 --- a/src/file_upload.rs +++ b/src/file_upload.rs @@ -1,12 +1,13 @@ -use actix_web::{http::header, HttpRequest, HttpResponse}; -use futures::TryStreamExt; use std::{ io::Write, path::{Component, Path, PathBuf}, }; +use actix_web::{http::header, HttpRequest, HttpResponse}; +use futures::TryStreamExt; + use crate::errors::ContextualError; -use crate::listing::{self}; +use crate::listing; /// Saves file data from a multipart form field (`field`) to `file_path`, optionally overwriting /// existing file. |