aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/attr.rs
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno.d@partner.samsung.com>2014-08-20 12:17:17 -0400
committerBruno de Oliveira Abinader <bruno.d@partner.samsung.com>2014-08-22 08:09:49 -0400
commit9061942664e2f444ced65ff6b7771ec8fb47f690 (patch)
treec043934f58e91c122f508aa0176e0d20a79b36cb /src/components/script/dom/attr.rs
parent608389132ac62e541dc1a62ba6311da61cec841d (diff)
downloadservo-9061942664e2f444ced65ff6b7771ec8fb47f690.tar.gz
servo-9061942664e2f444ced65ff6b7771ec8fb47f690.zip
Make AttrValue::as_slice impl from Str
Diffstat (limited to 'src/components/script/dom/attr.rs')
-rw-r--r--src/components/script/dom/attr.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/script/dom/attr.rs b/src/components/script/dom/attr.rs
index dc20378e60a..961089fa2a6 100644
--- a/src/components/script/dom/attr.rs
+++ b/src/components/script/dom/attr.rs
@@ -56,7 +56,10 @@ impl AttrValue {
AtomAttrValue(value)
}
- pub fn as_slice<'a>(&'a self) -> &'a str {
+}
+
+impl Str for AttrValue {
+ fn as_slice<'a>(&'a self) -> &'a str {
match *self {
StringAttrValue(ref value) |
TokenListAttrValue(ref value, _) |