Skip to content

Commit 5596df9

Browse files
Fix clippy lints.
1 parent 678049c commit 5596df9

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/element_ref/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl<'a> Iterator for Text<'a> {
123123
for edge in &mut self.inner {
124124
if let Edge::Open(node) = edge {
125125
if let Node::Text(ref text) = node.value() {
126-
return Some(&*text);
126+
return Some(&**text);
127127
}
128128
}
129129
}

src/node.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ impl fmt::Debug for Element {
345345
}
346346

347347
/// HTML Processing Instruction.
348-
#[derive(Clone, PartialEq, Eq)]
348+
#[derive(Debug, Clone, PartialEq, Eq)]
349349
pub struct ProcessingInstruction {
350350
/// The PI target.
351351
pub target: StrTendril,
@@ -360,9 +360,3 @@ impl Deref for ProcessingInstruction {
360360
self.data.deref()
361361
}
362362
}
363-
364-
impl fmt::Debug for ProcessingInstruction {
365-
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
366-
write!(f, "{:?} {:?}", self, self.data)
367-
}
368-
}

src/selector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::ElementRef;
1414
/// Wrapper around CSS selectors.
1515
///
1616
/// Represents a "selector group", i.e. a comma-separated list of selectors.
17-
#[derive(Debug, Clone, PartialEq)]
17+
#[derive(Debug, Clone, PartialEq, Eq)]
1818
pub struct Selector {
1919
/// The CSS selectors.
2020
pub selectors: SmallVec<[parser::Selector<Simple>; 1]>,

0 commit comments

Comments
 (0)