Skip to content

Commit

Permalink
Merge pull request #114 from GuillaumeGomez/fix-lints
Browse files Browse the repository at this point in the history
Fix clippy lints
  • Loading branch information
GuillaumeGomez authored Nov 10, 2024
2 parents b9eac38 + 241767a commit 2c618c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/css/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SelectorElement<'_>, Self::Error> {
fn try_from(value: &'a str) -> Result<SelectorElement<'a>, Self::Error> {
if let Some(value) = value.strip_prefix('.') {
if value.is_empty() {
Err("cannot determine selector")
Expand Down

0 comments on commit 2c618c9

Please sign in to comment.