mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy:Fix clippy problems in components/scripts/binding (#31893)
* constants have by default a static lifetime * constants have by default a static lifetime * unneeded unit expression * unneeded unit expression * Box of default value * casting raw pointers * casting raw pointers
This commit is contained in:
parent
1f31609952
commit
bb7778774d
7 changed files with 12 additions and 16 deletions
|
@ -127,7 +127,7 @@ pub trait CallbackContainer {
|
|||
///
|
||||
/// ["callback context"]: https://heycam.github.io/webidl/#dfn-callback-context
|
||||
fn incumbent(&self) -> Option<&GlobalScope> {
|
||||
self.callback_holder().incumbent.as_ref().map(Dom::deref)
|
||||
self.callback_holder().incumbent.as_deref()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue