From e034c1cee22e4cf11dbf3e4fccf6815513080bfe Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 28 Oct 2014 11:16:20 -0700 Subject: [PATCH] script: Use `String::new()` instead of the formatting infrastructure when constructing DOM unique IDs. This was showing up in the RoboHornet profile. --- components/script/dom/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()), } }