aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/cssstyledeclaration.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2015-06-15 15:34:03 +0200
committerSimon Sapin <simon.sapin@exyr.org>2015-06-15 15:37:14 +0200
commit5428226e04fdee4184109164ed749de29f2c5429 (patch)
treee126f3316c0acab1ffe94330f72ddc2d02316c2e /components/script/dom/cssstyledeclaration.rs
parent24af4c4ec638b0484c8acacdf7cb9acb87da24ff (diff)
downloadservo-5428226e04fdee4184109164ed749de29f2c5429.tar.gz
servo-5428226e04fdee4184109164ed749de29f2c5429.zip
Remove usage of String::from_str, deprecated in #6377
Diffstat (limited to 'components/script/dom/cssstyledeclaration.rs')
-rw-r--r--components/script/dom/cssstyledeclaration.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs
index eb0e473ca41..1e0b13b2ee3 100644
--- a/components/script/dom/cssstyledeclaration.rs
+++ b/components/script/dom/cssstyledeclaration.rs
@@ -211,7 +211,7 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
}
// Step 6
- let mut synthesized_declaration = String::from_str(&property);
+ let mut synthesized_declaration = property;
synthesized_declaration.push_str(": ");
synthesized_declaration.push_str(&value);