mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove usage of String::from_str, deprecated in #6377
This commit is contained in:
parent
24af4c4ec6
commit
5428226e04
6 changed files with 11 additions and 13 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue