From 32fdda0b1e5ebb13b953c3c461bcfd5e04a685d4 Mon Sep 17 00:00:00 2001 From: neri Date: Sat, 15 Oct 2022 14:02:47 +0200 Subject: [PATCH] remove debug logs --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/mime_relations.rs | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b3f16d1..7c8a21b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -416,7 +416,7 @@ dependencies = [ [[package]] name = "datatrash" -version = "1.2.1" +version = "1.2.2" dependencies = [ "actix-files", "actix-governor", diff --git a/Cargo.toml b/Cargo.toml index 2630ab7..239912c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "datatrash" -version = "1.2.1" +version = "1.2.2" authors = ["neri"] edition = "2021" diff --git a/src/mime_relations.rs b/src/mime_relations.rs index 391c266..b5f3051 100644 --- a/src/mime_relations.rs +++ b/src/mime_relations.rs @@ -63,9 +63,7 @@ pub(crate) fn matches_text(mime: &Mime) -> bool { pub(crate) fn get_extension(mimetype: &Mime) -> Option<&'static str> { let mut queue = VecDeque::new(); queue.push_back(mimetype); - dbg!(&*EXTENSIONS); while let Some(mime) = queue.pop_front() { - dbg!(mime); match EXTENSIONS.get(mimetype).copied() { Some(ext) => return Some(ext), None => queue.extend(get_mime_parents(mime)),