Skip to content

Commit

Permalink
Use .clone() instead of.as_slice().to_string()
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-daniels committed Dec 5, 2014
1 parent 8628202 commit e2e5536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/document.rs
Expand Up @@ -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
Expand Down

4 comments on commit e2e5536

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from Ms2ger
at thomas-daniels@e2e5536

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging ProgramFOX/servo/issue-4251 = e2e5536 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ProgramFOX/servo/issue-4251 = e2e5536 merged ok, testing candidate = 2222b83

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.