diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-07-04 13:40:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 11:40:23 +0000 |
commit | 26624a109f9d94560780b5ca8d08926e855c5987 (patch) | |
tree | 46462f5a7c9fb6ac8969794afcaefd11662dda30 /components/script/dom/attr.rs | |
parent | 93fdb8263d14346d0757c2192527bc8c7c577572 (diff) | |
download | servo-26624a109f9d94560780b5ca8d08926e855c5987.tar.gz servo-26624a109f9d94560780b5ca8d08926e855c5987.zip |
clippy: Fix a bunch of warnings in `script` (#32680)
This is just a portion of the errors that are remaining to be fixed.
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 dbc241a0fa7..15626358f3c 100644 --- a/components/script/dom/attr.rs +++ b/components/script/dom/attr.rs @@ -241,7 +241,7 @@ impl Attr { pub trait AttrHelpersForLayout<'dom> { fn value(self) -> &'dom AttrValue; fn as_str(&self) -> &'dom str; - fn as_tokens(self) -> Option<&'dom [Atom]>; + fn to_tokens(self) -> Option<&'dom [Atom]>; fn local_name(self) -> &'dom LocalName; fn namespace(self) -> &'dom Namespace; } @@ -259,7 +259,7 @@ impl<'dom> AttrHelpersForLayout<'dom> for LayoutDom<'dom, Attr> { } #[inline] - fn as_tokens(self) -> Option<&'dom [Atom]> { + fn to_tokens(self) -> Option<&'dom [Atom]> { match *self.value() { AttrValue::TokenList(_, ref tokens) => Some(tokens), _ => None, |