mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use .clone() instead of.as_slice().to_string()
This commit is contained in:
parent
86282022bd
commit
e2e5536315
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
|
||||
// http://dom.spec.whatwg.org/#dom-document-characterset
|
||||
fn CharacterSet(self) -> DOMString {
|
||||
self.encoding_name.borrow().as_slice().to_string()
|
||||
self.encoding_name.borrow().clone()
|
||||
}
|
||||
|
||||
// http://dom.spec.whatwg.org/#dom-document-content_type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue