aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-10-28 11:16:20 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-10-28 11:16:20 -0700
commite034c1cee22e4cf11dbf3e4fccf6815513080bfe (patch)
treed38d513476844db0c3f4c21b429d6354cf136e16 /components/script/dom/node.rs
parent6f577c7c84f8cedf83a6f4c71625190ba8cbd19e (diff)
downloadservo-e034c1cee22e4cf11dbf3e4fccf6815513080bfe.tar.gz
servo-e034c1cee22e4cf11dbf3e4fccf6815513080bfe.zip
script: Use `String::new()` instead of the formatting infrastructure
when constructing DOM unique IDs. This was showing up in the RoboHornet profile.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index d13feb5193e..52591258387 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -1156,7 +1156,7 @@ impl Node {
layout_data: LayoutDataRef::new(),
- unique_id: DOMRefCell::new("".to_string()),
+ unique_id: DOMRefCell::new(String::new()),
}
}