Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Jan 15, 2024
1 parent c147468 commit d3d5094
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/hello.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ where
req: Request<Incoming>,
) -> Pin<Box<dyn Future<Output = Response<Body>> + Send + 'a>> {
let fut = (self)(req);
Box::pin(async move { fut.await })
Box::pin(fut)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl<T> PathTree<T> {
pub fn find<'a, 'b>(&'a self, path: &'b str) -> Option<(&T, Path<'a, 'b>)> {
let bytes = path.as_bytes();
self.node.find(bytes).and_then(|(id, ranges)| {
self.get_route(*id).map(|(value, pieces)| {
self.routes.get(*id).map(|(value, pieces)| {
(
value,
Path {
Expand Down

0 comments on commit d3d5094

Please sign in to comment.