mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
clippy: Fix dereferenced warnings (#31770)
This commit is contained in:
parent
0cf2caba06
commit
02a0cdd6fa
43 changed files with 92 additions and 96 deletions
|
@ -228,13 +228,13 @@ impl<'a> Serialize for &'a Node {
|
|||
},
|
||||
|
||||
SerializationCommand::CloseElement(n) => {
|
||||
end_element(&&n, serializer)?;
|
||||
end_element(&n, serializer)?;
|
||||
},
|
||||
|
||||
SerializationCommand::SerializeNonelement(n) => match n.type_id() {
|
||||
NodeTypeId::DocumentType => {
|
||||
let doctype = n.downcast::<DocumentType>().unwrap();
|
||||
serializer.write_doctype(&doctype.name())?;
|
||||
serializer.write_doctype(doctype.name())?;
|
||||
},
|
||||
|
||||
NodeTypeId::CharacterData(CharacterDataTypeId::Text(_)) => {
|
||||
|
@ -250,7 +250,7 @@ impl<'a> Serialize for &'a Node {
|
|||
NodeTypeId::CharacterData(CharacterDataTypeId::ProcessingInstruction) => {
|
||||
let pi = n.downcast::<ProcessingInstruction>().unwrap();
|
||||
let data = pi.upcast::<CharacterData>().data();
|
||||
serializer.write_processing_instruction(&pi.target(), &data)?;
|
||||
serializer.write_processing_instruction(pi.target(), &data)?;
|
||||
},
|
||||
|
||||
NodeTypeId::DocumentFragment(_) => {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue