mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
Remove the unnecessary docs
This commit is contained in:
parent
fd941beec0
commit
3b4a8d1bb5
2 changed files with 0 additions and 6 deletions
|
@ -1,7 +1,4 @@
|
||||||
//! Error handlers.
|
//! 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.
|
// Infallible used here instead of `!` to be compatible with rust <1.41.
|
||||||
use std::{convert::Infallible, fmt::Debug, future::Future, pin::Pin};
|
use std::{convert::Infallible, fmt::Debug, future::Future, pin::Pin};
|
||||||
|
|
|
@ -13,9 +13,6 @@ pub trait Handler<T, E> {
|
||||||
|
|
||||||
/// The implementation of `Handler` for `Fn(U) -> Future<Output = Result<(),
|
/// The implementation of `Handler` for `Fn(U) -> Future<Output = Result<(),
|
||||||
/// E>>`.
|
/// 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
|
impl<T, E, F, Fut> Handler<T, E> for F
|
||||||
where
|
where
|
||||||
F: Fn(T) -> Fut,
|
F: Fn(T) -> Fut,
|
||||||
|
|
Loading…
Reference in a new issue