Removed over-zeleous feature gating

This commit is contained in:
Emi Tatsuo 2020-11-19 11:29:11 -05:00
parent 475db6af79
commit c69cf49d99
Signed by: Emi
GPG key ID: 68FAB2E2E6DFC98B

View file

@ -2,7 +2,6 @@
use std::path::{Path, PathBuf};
#[cfg(feature="serve_dir")]
use mime::Mime;
#[cfg(feature="serve_dir")]
use anyhow::*;
#[cfg(feature="serve_dir")]
use tokio::{
@ -10,7 +9,8 @@ use tokio::{
io,
};
#[cfg(feature="serve_dir")]
use crate::types::{Response, Document, document::HeadingLevel::*};
use crate::types::{Document, document::HeadingLevel::*};
use crate::types::Response;
use std::panic::{catch_unwind, AssertUnwindSafe};
use std::task::Poll;
use futures_core::future::Future;