diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-02-12 19:31:08 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-02-12 19:31:08 +0000 |
commit | f7b303bd1985cdad111da9aa27f1f164acbb797c (patch) | |
tree | 89164cd40825ca1830d2d911a7f8ac3a32c84d18 /src/config.rs | |
parent | Reorganized some imports + removed unused imports (diff) | |
download | miniserve-f7b303bd1985cdad111da9aa27f1f164acbb797c.tar.gz miniserve-f7b303bd1985cdad111da9aa27f1f164acbb797c.zip |
Fixed Clippy warnings
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs index 4873fff..4c345ba 100644 --- a/src/config.rs +++ b/src/config.rs @@ -23,7 +23,7 @@ pub fn configure_app(app: App<MiniserveConfig>) -> App<MiniserveConfig> { let path = &app.state().path; let no_symlinks = app.state().no_symlinks; let random_route = app.state().random_route.clone(); - let sort_method = app.state().sort_method.clone(); + let sort_method = app.state().sort_method; let reverse_sort = app.state().reverse_sort; if path.is_file() { None @@ -38,7 +38,7 @@ pub fn configure_app(app: App<MiniserveConfig>) -> App<MiniserveConfig> { req, no_symlinks, random_route.clone(), - sort_method.clone(), + sort_method, reverse_sort, ) }), |