Skip to content

Commit

Permalink
Clippy gonna clip
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten committed Mar 2, 2024
1 parent a5bb422 commit 4256a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/attributes/element_attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct ElementAttribute<'a> {
impl<'a> ElementAttribute<'a> {
#[allow(dead_code)]
pub(crate) fn parse(source: Span<'a>) -> IResult<Span, Self> {
let i = source.clone();
let i = source;

let (rem, name): (Span<'a>, Option<Span<'a>>) = if let Ok((rem, name)) = attr_name(i) {
let (rem, _) = space0(rem)?;
Expand Down Expand Up @@ -79,7 +79,7 @@ impl<'a> HasSpan<'a> for ElementAttribute<'a> {
}
}

fn parse_value<'a>(source: Span<'a>) -> IResult<Span<'a>, Span<'a>> {
fn parse_value(source: Span<'_>) -> IResult<Span<'_>, Span<'_>> {
if source.starts_with('\'') || source.starts_with('"') {
quoted_string(source)
} else {
Expand Down

0 comments on commit 4256a94

Please sign in to comment.