Skip to content

Commit e439cbb

Browse files
Fix clippy::needless_lifetimes lints
1 parent 0e96cfd commit e439cbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl fmt::Display for StyleSheet<'_> {
258258
}
259259
}
260260

261-
impl<'a> Default for StyleSheet<'a> {
261+
impl Default for StyleSheet<'_> {
262262
fn default() -> Self {
263263
Self::new()
264264
}

src/selector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub enum AttributeOperator<'a> {
2222
StartsWith(&'a str),
2323
}
2424

25-
impl<'a> AttributeOperator<'a> {
25+
impl AttributeOperator<'_> {
2626
/// Checks that value is matching the operator.
2727
pub fn matches(&self, value: &str) -> bool {
2828
match *self {
@@ -355,7 +355,7 @@ pub(crate) fn parse(text: &str) -> (Option<Selector>, usize) {
355355
}
356356
}
357357

358-
impl<'a> fmt::Display for Selector<'a> {
358+
impl fmt::Display for Selector<'_> {
359359
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
360360
for component in &self.components {
361361
match component.combinator {

0 commit comments

Comments
 (0)