Skip to content

Commit d3d5094

Browse files
committed
fix: clippy
1 parent c147468 commit d3d5094

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/hello.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ where
3333
req: Request<Incoming>,
3434
) -> Pin<Box<dyn Future<Output = Response<Body>> + Send + 'a>> {
3535
let fut = (self)(req);
36-
Box::pin(async move { fut.await })
36+
Box::pin(fut)
3737
}
3838
}
3939

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl<T> PathTree<T> {
212212
pub fn find<'a, 'b>(&'a self, path: &'b str) -> Option<(&T, Path<'a, 'b>)> {
213213
let bytes = path.as_bytes();
214214
self.node.find(bytes).and_then(|(id, ranges)| {
215-
self.get_route(*id).map(|(value, pieces)| {
215+
self.routes.get(*id).map(|(value, pieces)| {
216216
(
217217
value,
218218
Path {

0 commit comments

Comments
 (0)