formatting

This commit is contained in:
Abdulla Abdurakhmanov 2020-08-22 18:44:52 +03:00
parent 9081aadef9
commit 38959cc5d5
2 changed files with 3 additions and 2 deletions

View file

@ -38,7 +38,8 @@ where
move |req: Request<Body>| route(req, default.clone()).boxed()
}
pub type ErrorHandler = Box<fn(Box<dyn std::error::Error + Send + Sync + 'static>, Arc<SlackClient>)>;
pub type ErrorHandler =
Box<fn(Box<dyn std::error::Error + Send + Sync + 'static>, Arc<SlackClient>)>;
#[derive(Clone)]
pub struct SlackClientEventsListener {

View file

@ -4,7 +4,7 @@ use crate::api::*;
use crate::errors::*;
use crate::{SlackClient, SlackClientHttpApi};
use crate::listener::{SlackClientEventsListener, ErrorHandler};
use crate::listener::{ErrorHandler, SlackClientEventsListener};
use futures::future::{BoxFuture, FutureExt};
use hyper::body::*;
use hyper::{Method, Request, Response};