mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix many warnings in components/script
(#31717)
* Fix Several clippy warnings * Fix Build errors * Fix Unused import * Fix requested changes * Fix rustfmt * Minor fixes --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
676f655647
commit
01ca220f83
41 changed files with 200 additions and 212 deletions
|
@ -126,7 +126,7 @@ impl<'a, E: TextControlElement> TextControlSelection<'a, E> {
|
|||
self.set_range(
|
||||
Some(self.start()),
|
||||
Some(self.end()),
|
||||
direction.map(|d| SelectionDirection::from(d)),
|
||||
direction.map(SelectionDirection::from),
|
||||
None,
|
||||
);
|
||||
Ok(())
|
||||
|
@ -305,7 +305,7 @@ impl<'a, E: TextControlElement> TextControlSelection<'a, E> {
|
|||
.task_manager()
|
||||
.user_interaction_task_source()
|
||||
.queue_event(
|
||||
&self.element.upcast::<EventTarget>(),
|
||||
self.element.upcast::<EventTarget>(),
|
||||
atom!("select"),
|
||||
EventBubbles::Bubbles,
|
||||
EventCancelable::NotCancelable,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue