File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ impl<'a> Iterator for Text<'a> {
123
123
for edge in & mut self . inner {
124
124
if let Edge :: Open ( node) = edge {
125
125
if let Node :: Text ( ref text) = node. value ( ) {
126
- return Some ( & * text) ;
126
+ return Some ( & * * text) ;
127
127
}
128
128
}
129
129
}
Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ impl fmt::Debug for Element {
345
345
}
346
346
347
347
/// HTML Processing Instruction.
348
- #[ derive( Clone , PartialEq , Eq ) ]
348
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
349
349
pub struct ProcessingInstruction {
350
350
/// The PI target.
351
351
pub target : StrTendril ,
@@ -360,9 +360,3 @@ impl Deref for ProcessingInstruction {
360
360
self . data . deref ( )
361
361
}
362
362
}
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
- }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use crate::ElementRef;
14
14
/// Wrapper around CSS selectors.
15
15
///
16
16
/// Represents a "selector group", i.e. a comma-separated list of selectors.
17
- #[ derive( Debug , Clone , PartialEq ) ]
17
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
18
18
pub struct Selector {
19
19
/// The CSS selectors.
20
20
pub selectors : SmallVec < [ parser:: Selector < Simple > ; 1 ] > ,
You can’t perform that action at this time.
0 commit comments