mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
clippy: Fix a bunch of warnings in script
(#32680)
This is just a portion of the errors that are remaining to be fixed.
This commit is contained in:
parent
93fdb8263d
commit
26624a109f
27 changed files with 150 additions and 113 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue