aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 5f1bee3a730..041d6407418 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -796,10 +796,10 @@ impl Node {
}
pub fn summarize(&self) -> NodeInfo {
- let USVString(baseURI) = self.BaseURI();
+ let USVString(base_uri) = self.BaseURI();
NodeInfo {
uniqueId: self.unique_id(),
- baseURI: baseURI,
+ baseURI: base_uri,
parent: self.GetParentNode().map_or("".to_owned(), |node| node.unique_id()),
nodeType: self.NodeType(),
namespaceURI: String::new(), //FIXME
@@ -2296,8 +2296,8 @@ impl NodeMethods for Node {
}
// https://dom.spec.whatwg.org/#dom-node-issamenode
- fn IsSameNode(&self, otherNode: Option<&Node>) -> bool {
- match otherNode {
+ fn IsSameNode(&self, other_node: Option<&Node>) -> bool {
+ match other_node {
Some(node) => self == node,
None => false,
}