diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-04-25 15:24:27 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-25 15:24:27 +0200 |
commit | 41cc0a939e552f0898ab4cdeb7c4ebddb6378090 (patch) | |
tree | aea6fdde87c438b62a10c9a4e57a40f914925a44 /components/script/dom/htmltablesectionelement.rs | |
parent | 4108af0c113fcbd64abf2a1cf71026c2f7a653d3 (diff) | |
download | servo-41cc0a939e552f0898ab4cdeb7c4ebddb6378090.tar.gz servo-41cc0a939e552f0898ab4cdeb7c4ebddb6378090.zip |
Replace the Str implementation for AttrValue by a Deref implementation.
Diffstat (limited to 'components/script/dom/htmltablesectionelement.rs')
-rw-r--r-- | components/script/dom/htmltablesectionelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmltablesectionelement.rs b/components/script/dom/htmltablesectionelement.rs index 1728bb6e8d2..27b26a79dd6 100644 --- a/components/script/dom/htmltablesectionelement.rs +++ b/components/script/dom/htmltablesectionelement.rs @@ -72,7 +72,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLTableSectionElement> { match attr.local_name() { &atom!("bgcolor") => { - self.background_color.set(str::parse_legacy_color(attr.value().as_slice()).ok()); + self.background_color.set(str::parse_legacy_color(&attr.value()).ok()); }, _ => () } |