diff options
Diffstat (limited to 'components/script/dom/attr.rs')
-rw-r--r-- | components/script/dom/attr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/attr.rs b/components/script/dom/attr.rs index 0096942ba9a..a17f3fb4c81 100644 --- a/components/script/dom/attr.rs +++ b/components/script/dom/attr.rs @@ -240,7 +240,7 @@ impl Attr { #[allow(unsafe_code)] pub trait AttrHelpersForLayout<'dom> { fn value(self) -> &'dom AttrValue; - fn as_str(self) -> &'dom str; + fn as_str(&self) -> &'dom str; fn as_tokens(self) -> Option<&'dom [Atom]>; fn local_name(self) -> &'dom LocalName; fn namespace(self) -> &'dom Namespace; @@ -254,7 +254,7 @@ impl<'dom> AttrHelpersForLayout<'dom> for LayoutDom<'dom, Attr> { } #[inline] - fn as_str(self) -> &'dom str { + fn as_str(&self) -> &'dom str { self.value() } |