Skip to content

Commit

Permalink
Make AttrValue::as_slice impl from Str
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoabinader committed Aug 22, 2014
1 parent 6083891 commit 9061942
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/script/dom/attr.rs
Expand Up @@ -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, _) |
Expand Down

0 comments on commit 9061942

Please sign in to comment.