Skip to content

Commit d5805de

Browse files
committed
Run rustfmt
1 parent 77962fc commit d5805de

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

sentry/src/lib.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
#![deny(rust_2018_idioms)]
33

44
use hyper::service::{make_service_fn, service_fn};
5-
use hyper::{Body, Error, Request, Response, Server, StatusCode, Method};
5+
use hyper::{Body, Error, Method, Request, Response, Server, StatusCode};
66
use primitives::adapter::Adapter;
77
use primitives::Config;
88
use slog::{error, info, Logger};
99

1010
pub mod routes {
1111
pub mod channel;
1212
pub mod cfg {
13-
use hyper::{Body, Response};
1413
use crate::ResponseError;
14+
use hyper::{Body, Response};
1515
use primitives::Config;
1616

1717
pub fn return_config(config: &Config) -> Result<Response<Body>, ResponseError> {
@@ -82,10 +82,13 @@ where
8282
}
8383
}
8484

85-
async fn handle_routing(req: Request<Body>, (adapter, config): (impl Adapter, Config)) -> Response<Body> {
85+
async fn handle_routing(
86+
req: Request<Body>,
87+
(adapter, config): (impl Adapter, Config),
88+
) -> Response<Body> {
8689
if req.uri().path().starts_with("/cfg") && req.method() == Method::GET {
8790
crate::routes::cfg::return_config(&config)
88-
}else if req.uri().path().starts_with("/channel") {
91+
} else if req.uri().path().starts_with("/channel") {
8992
crate::routes::channel::handle_channel_routes(req, adapter).await
9093
} else {
9194
Err(ResponseError::NotFound)

0 commit comments

Comments
 (0)