From a89d3a58bc5c4a6e826bda86ac3f71d632ce64d5 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Thu, 12 Sep 2024 15:06:22 -0400 Subject: [PATCH] refactor: fix nightly warning --- actix-web-httpauth/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-web-httpauth/src/utils.rs b/actix-web-httpauth/src/utils.rs index 05d61cdaa5..6867f471d5 100644 --- a/actix-web-httpauth/src/utils.rs +++ b/actix-web-httpauth/src/utils.rs @@ -12,8 +12,8 @@ struct Quoted<'a> { state: State, } -impl<'a> Quoted<'a> { - pub fn new(s: &'a str) -> Quoted<'_> { +impl Quoted<'_> { + pub fn new(s: &str) -> Quoted<'_> { Quoted { inner: s.split('"').peekable(), state: State::YieldStr,