From 5567d665d7c5f0ed09e1d5c588c18c28751f23e1 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Tue, 25 Jul 2023 21:52:08 +0200 Subject: [PATCH] Fix typo (#2118) --- axum/src/routing/path_router.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axum/src/routing/path_router.rs b/axum/src/routing/path_router.rs index 0bcef88a..99b1ec2a 100644 --- a/axum/src/routing/path_router.rs +++ b/axum/src/routing/path_router.rs @@ -336,12 +336,12 @@ where url_params::insert_url_params(req.extensions_mut(), match_.params); - let endpont = self + let endpoint = self .routes .get_mut(&id) .expect("no route for id. This is a bug in axum. Please file an issue"); - match endpont { + match endpoint { Endpoint::MethodRouter(method_router) => { Ok(method_router.call_with_state(req, state)) }