Remove the unnecessary docs

This commit is contained in:
Temirkhan Myrzamadi 2019-12-31 01:12:38 +06:00
parent fd941beec0
commit 3b4a8d1bb5
2 changed files with 0 additions and 6 deletions

View file

@ -1,7 +1,4 @@
//! Error handlers.
//!
//! Looks quite strange for now, but with stabilised asynchronous traits it
//! should be prettier.
// Infallible used here instead of `!` to be compatible with rust <1.41.
use std::{convert::Infallible, fmt::Debug, future::Future, pin::Pin};

View file

@ -13,9 +13,6 @@ pub trait Handler<T, E> {
/// The implementation of `Handler` for `Fn(U) -> Future<Output = Result<(),
/// E>>`.
///
/// Looks quite strange for now, but with stabilised asynchronous traits it
/// should be prettier.
impl<T, E, F, Fut> Handler<T, E> for F
where
F: Fn(T) -> Fut,