Make AttrValue::as_slice impl from Str

This commit is contained in:
Bruno de Oliveira Abinader 2014-08-20 12:17:17 -04:00
parent 608389132a
commit 9061942664

View file

@ -56,7 +56,10 @@ impl AttrValue {
AtomAttrValue(value) 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 { match *self {
StringAttrValue(ref value) | StringAttrValue(ref value) |
TokenListAttrValue(ref value, _) | TokenListAttrValue(ref value, _) |