remove debug logs
This commit is contained in:
parent
e0ac712a4e
commit
32fdda0b1e
|
@ -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",
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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)),
|
||||||
|
|
Loading…
Reference in New Issue