aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domimplementation.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-03-29 13:33:02 -0400
committerCorey Farwell <coreyf@rwell.org>2015-03-29 14:42:19 -0400
commitd838fcce30d56e02bd22c4bcfca04d39bf4fc38e (patch)
tree3a906417b1c164990bc308ff790913b9c7c08740 /components/script/dom/domimplementation.rs
parentb8ea10bfe3386357b68e5564332cf8ac9d5377bb (diff)
downloadservo-d838fcce30d56e02bd22c4bcfca04d39bf4fc38e.tar.gz
servo-d838fcce30d56e02bd22c4bcfca04d39bf4fc38e.zip
Remove some unnecessary uses of `as_slice`
For the majority of these cases, `as_slice` can be removed due to `Deref`. In particular, `Deref` for: * `String` -> `str` * `Atom` -> `str` The latter of those two requires, a bump of the locked `string-cache` library
Diffstat (limited to 'components/script/dom/domimplementation.rs')
-rw-r--r--components/script/dom/domimplementation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/domimplementation.rs b/components/script/dom/domimplementation.rs
index 3353e735dfd..2b5bc3870c1 100644
--- a/components/script/dom/domimplementation.rs
+++ b/components/script/dom/domimplementation.rs
@@ -53,7 +53,7 @@ impl DOMImplementation {
impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> {
// http://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype
fn CreateDocumentType(self, qname: DOMString, pubid: DOMString, sysid: DOMString) -> Fallible<Temporary<DocumentType>> {
- match xml_name_type(qname.as_slice()) {
+ match xml_name_type(&qname) {
// Step 1.
InvalidXMLName => Err(InvalidCharacter),
// Step 2.