Skip to content

Commit

Permalink
tonic: fix fmt issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlq committed Feb 18, 2022
1 parent 74454f7 commit 6e5cdbe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tonic/src/service/interceptor.rs
Expand Up @@ -166,7 +166,7 @@ where
let (metadata, extensions, msg) = req.into_parts();

match self
.f
.fg
.call(crate::Request::from_parts(metadata, extensions, ()))
{
Ok(req) => {
Expand Down Expand Up @@ -283,9 +283,7 @@ mod tests {
Ok::<_, hyper::Error>(hyper::Response::new(hyper::Body::empty()))
});

let svc = InterceptedService::new(svc, |request: crate::Request<()>| {
Ok(request)
});
let svc = InterceptedService::new(svc, |request: crate::Request<()>| Ok(request));

let request = http::Request::builder()
.method(http::Method::OPTIONS)
Expand Down

0 comments on commit 6e5cdbe

Please sign in to comment.