Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten committed Oct 27, 2023
1 parent 5aee407 commit d841e6d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion memory-serve-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ brotli = "3.4"
mime_guess = "2.0"
proc-macro2 = "1.0"
sha256 = "1.4"
walkdir = "2.4"
walkdir = "2"
tracing = "0.1"
quote = { version = "1.0", default-features = false }
syn = { version = "2.0", default-features = false }
Expand Down
10 changes: 7 additions & 3 deletions memory-serve-macros/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,14 @@ pub(crate) fn list_assets<P: AsRef<Path>>(path: P) -> Vec<Asset> {
let route = path_to_route(entry.path());

if brotli_bytes.is_empty() {
info!("including {:?} {} bytes", entry.path(), bytes.len());
info!("including {:?} {} bytes", route, bytes.len());
} else {
info!("including {:?} {} -> {} bytes (compressed)", entry.path(), bytes.len(), brotli_bytes.len());

info!(
"including {:?} {} -> {} bytes (compressed)",
route,
bytes.len(),
brotli_bytes.len()
);
};

Some(Asset {
Expand Down
2 changes: 1 addition & 1 deletion memory-serve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
//!
//! #[tokio::main]
//! async fn main() {
//! let memory_router = MemoryServe::new(load_assets!("../static"))
//! let memory_router = MemoryServe::new(load_assets!("static"))
//! .index_file(Some("/index.html"))
//! .into_router();
//!
Expand Down

0 comments on commit d841e6d

Please sign in to comment.