From 845728f0da015126bb388bf0415baa9535293e47 Mon Sep 17 00:00:00 2001 From: Chrislearn Young Date: Wed, 29 Nov 2023 15:28:08 +0800 Subject: [PATCH] Fix compile error --- crates/serve-static/Cargo.toml | 4 ++-- crates/serve-static/src/dir.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/serve-static/Cargo.toml b/crates/serve-static/Cargo.toml index 4b12d14a7..6307c10bb 100644 --- a/crates/serve-static/Cargo.toml +++ b/crates/serve-static/Cargo.toml @@ -20,13 +20,13 @@ rustdoc-args = ["--cfg", "docsrs"] [features] default = [] full = ["embed"] -embed = ["dep:rust-embed", "dep:hex", "dep:path-slash"] +embed = ["dep:rust-embed", "dep:hex"] [dependencies] hex = { workspace = true, optional = true } mime = { workspace = true } mime-infer = { workspace = true } -path-slash = { workspace = true, optional = true } +path-slash = { workspace = true } percent-encoding = { workspace = true } rust-embed = { workspace = true, optional = true } salvo_core = { workspace = true, default-features = false } diff --git a/crates/serve-static/src/dir.rs b/crates/serve-static/src/dir.rs index f8b3a144e..b0f68f044 100644 --- a/crates/serve-static/src/dir.rs +++ b/crates/serve-static/src/dir.rs @@ -17,7 +17,7 @@ use serde::{Deserialize, Serialize}; use serde_json::json; use time::{macros::format_description, OffsetDateTime}; -use super::{decode_url_path_safely, encode_url_path, format_url_path_safely, redirect_to_dir_url, join_path}; +use super::{decode_url_path_safely, encode_url_path, format_url_path_safely, join_path, redirect_to_dir_url}; /// CompressionAlgo #[derive(Eq, PartialEq, Clone, Copy, Debug, Hash)]