From b6b511c4dd9ae05aa262fa3cf6f5af9e2e953a88 Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Tue, 30 Jan 2024 00:08:46 +0900 Subject: [PATCH] chore: refactor --- src/signature_params.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signature_params.rs b/src/signature_params.rs index 633dd7e..e1a4a7d 100644 --- a/src/signature_params.rs +++ b/src/signature_params.rs @@ -75,7 +75,7 @@ impl TryFrom<&str> for HttpSignatureParams { .unwrap() .split(' ') .filter(|v| !v.is_empty()) - .map(|v| HttpMessageComponentId::try_from(v)) + .map(HttpMessageComponentId::try_from) .collect::>(); anyhow::ensure!( covered_components.iter().all(|v| v.is_ok()),