remove debug logs
This commit is contained in:
parent
e0ac712a4e
commit
32fdda0b1e
|
@ -416,7 +416,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "datatrash"
|
||||
version = "1.2.1"
|
||||
version = "1.2.2"
|
||||
dependencies = [
|
||||
"actix-files",
|
||||
"actix-governor",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "datatrash"
|
||||
version = "1.2.1"
|
||||
version = "1.2.2"
|
||||
authors = ["neri"]
|
||||
edition = "2021"
|
||||
|
||||
|
|
|
@ -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)),
|
||||
|
|
Loading…
Reference in New Issue