Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Nov 29, 2023
1 parent b75a4e7 commit 845728f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/serve-static/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion crates/serve-static/src/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 845728f

Please sign in to comment.