From f86afa1e5166a1a4301c78a1f2d464dbcf87d65c Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 31 Jan 2023 14:41:01 +0000 Subject: [PATCH] fmt --- actix-web-codegen/src/route.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/actix-web-codegen/src/route.rs b/actix-web-codegen/src/route.rs index 69a90ee8f..5425bc531 100644 --- a/actix-web-codegen/src/route.rs +++ b/actix-web-codegen/src/route.rs @@ -27,13 +27,13 @@ macro_rules! method_type { fn parse(method: &str) -> Result { match method { $(stringify!($upper) => Ok(Self::$variant),)+ - _ => { if method.chars().all(|c| c.is_ascii_uppercase()) { - Ok(Self::Custom) - } else { - Err(format!("HTTP method must be uppercase: `{}`", method)) - } - }, - // _ => Err(format!("Unexpected HTTP method: `{}`", method)), + _ => { + if method.chars().all(|c| c.is_ascii_uppercase()) { + Ok(Self::Custom) + } else { + Err(format!("HTTP method must be uppercase: `{}`", method)) + } + }, } }