Skip to content

Commit

Permalink
remove dbg statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeyh021 committed Aug 25, 2023
1 parent d865ba4 commit 4fbb514
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/statics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ where
{
fn into_response(self) -> Response {
let path = self.0.into();
dbg!(Asset::iter().collect::<Vec<_>>());
match Asset::get(path.as_str()) {
Some(content) => {
let mime = mime_guess::from_path(path).first_or_octet_stream();
Expand All @@ -33,6 +32,5 @@ where
// within our defined assets directory. This is the directory on our Asset
// struct, where folder = "static/".
pub async fn static_handler(uri: Uri) -> impl IntoResponse {
dbg!("in static handler");
StaticFile(uri.path().trim_start_matches("/static/").to_string())
}

0 comments on commit 4fbb514

Please sign in to comment.