remove debug logs

This commit is contained in:
neri 2022-10-15 14:02:47 +02:00
parent e0ac712a4e
commit 32fdda0b1e
3 changed files with 2 additions and 4 deletions

2
Cargo.lock generated
View File

@ -416,7 +416,7 @@ dependencies = [
[[package]] [[package]]
name = "datatrash" name = "datatrash"
version = "1.2.1" version = "1.2.2"
dependencies = [ dependencies = [
"actix-files", "actix-files",
"actix-governor", "actix-governor",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "datatrash" name = "datatrash"
version = "1.2.1" version = "1.2.2"
authors = ["neri"] authors = ["neri"]
edition = "2021" edition = "2021"

View File

@ -63,9 +63,7 @@ pub(crate) fn matches_text(mime: &Mime) -> bool {
pub(crate) fn get_extension(mimetype: &Mime) -> Option<&'static str> { pub(crate) fn get_extension(mimetype: &Mime) -> Option<&'static str> {
let mut queue = VecDeque::new(); let mut queue = VecDeque::new();
queue.push_back(mimetype); queue.push_back(mimetype);
dbg!(&*EXTENSIONS);
while let Some(mime) = queue.pop_front() { while let Some(mime) = queue.pop_front() {
dbg!(mime);
match EXTENSIONS.get(mimetype).copied() { match EXTENSIONS.get(mimetype).copied() {
Some(ext) => return Some(ext), Some(ext) => return Some(ext),
None => queue.extend(get_mime_parents(mime)), None => queue.extend(get_mime_parents(mime)),