Removed over-zeleous feature gating
This commit is contained in:
parent
475db6af79
commit
c69cf49d99
|
@ -2,7 +2,6 @@
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
#[cfg(feature="serve_dir")]
|
#[cfg(feature="serve_dir")]
|
||||||
use mime::Mime;
|
use mime::Mime;
|
||||||
#[cfg(feature="serve_dir")]
|
|
||||||
use anyhow::*;
|
use anyhow::*;
|
||||||
#[cfg(feature="serve_dir")]
|
#[cfg(feature="serve_dir")]
|
||||||
use tokio::{
|
use tokio::{
|
||||||
|
@ -10,7 +9,8 @@ use tokio::{
|
||||||
io,
|
io,
|
||||||
};
|
};
|
||||||
#[cfg(feature="serve_dir")]
|
#[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::panic::{catch_unwind, AssertUnwindSafe};
|
||||||
use std::task::Poll;
|
use std::task::Poll;
|
||||||
use futures_core::future::Future;
|
use futures_core::future::Future;
|
||||||
|
|
Loading…
Reference in a new issue