diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2014-10-28 11:16:20 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2014-10-28 11:16:20 -0700 |
commit | e034c1cee22e4cf11dbf3e4fccf6815513080bfe (patch) | |
tree | d38d513476844db0c3f4c21b429d6354cf136e16 /components/script/dom/node.rs | |
parent | 6f577c7c84f8cedf83a6f4c71625190ba8cbd19e (diff) | |
download | servo-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.rs | 2 |
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()), } } |