From 241767a08416718cac4ed7ca47ac988834123a6c Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 10 Nov 2024 16:05:45 +0100 Subject: [PATCH] Fix clippy lints --- src/css/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/token.rs b/src/css/token.rs index 35da00c..57adc96 100644 --- a/src/css/token.rs +++ b/src/css/token.rs @@ -179,7 +179,7 @@ pub enum SelectorElement<'a> { impl<'a> TryFrom<&'a str> for SelectorElement<'a> { type Error = &'static str; - fn try_from(value: &'a str) -> Result, Self::Error> { + fn try_from(value: &'a str) -> Result, Self::Error> { if let Some(value) = value.strip_prefix('.') { if value.is_empty() { Err("cannot determine selector")