diff options
author | Kitsu <mail@kitsu.me> | 2024-04-22 03:45:39 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 06:45:39 +0000 |
commit | 67f239d1bab9e866539ea4ef76a1d40bcbeb7d53 (patch) | |
tree | 3fe75ab5c1fb14618c0792a7ce72994b6913bf29 /components/layout_thread/lib.rs | |
parent | 025a98773223412edd8a0032a44c60ee84d69eee (diff) | |
download | servo-67f239d1bab9e866539ea4ef76a1d40bcbeb7d53.tar.gz servo-67f239d1bab9e866539ea4ef76a1d40bcbeb7d53.zip |
clippy: fix several lint warns (#32126)
As seems #31500 still remain opened here's the next partial fix.
Fixed list: `unused_mut`, `clippy::needless_borrow`,
`clippy::match_ref_pats`, `clippy::borrow_deref_ref`, `clippy::ptr_eq`,
`clippy::unnecessary_cast`, `clippy::derivable_impls`,
`clippy::collapsible_match`, `clippy::extra_unused_lifetimes`,
`clippy::map_clone`, `clippy::manual_filter`.
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes are part of #31500.
- [x] These changes do not require tests because are only cosmetic.
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r-- | components/layout_thread/lib.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 7f2ad49ca10..d7d59f5a152 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -608,7 +608,7 @@ impl LayoutThread { } /// Receives and dispatches messages from the script and constellation threads - fn handle_request<'a, 'b>(&mut self, request: Request) { + fn handle_request(&mut self, request: Request) { match request { Request::FromPipeline(LayoutControlMsg::SetScrollStates(new_scroll_states)) => { self.handle_request_helper(Msg::SetScrollStates(new_scroll_states)) @@ -754,7 +754,7 @@ impl LayoutThread { } /// Sets quirks mode for the document, causing the quirks mode stylesheet to be used. - fn handle_set_quirks_mode<'a, 'b>(&mut self, quirks_mode: QuirksMode) { + fn handle_set_quirks_mode(&mut self, quirks_mode: QuirksMode) { self.stylist.set_quirks_mode(quirks_mode); } @@ -1339,7 +1339,7 @@ impl LayoutThread { profile_time::ProfilerCategory::LayoutGeneratedContent, self.profiler_metadata(), self.time_profiler_chan.clone(), - || sequential::resolve_generated_content(FlowRef::deref_mut(root_flow), &context), + || sequential::resolve_generated_content(FlowRef::deref_mut(root_flow), context), ); // Guess float placement. @@ -1375,7 +1375,7 @@ impl LayoutThread { ); } else { //Sequential mode - LayoutThread::solve_constraints(FlowRef::deref_mut(root_flow), &context) + LayoutThread::solve_constraints(FlowRef::deref_mut(root_flow), context) } }, ); @@ -1396,7 +1396,7 @@ impl LayoutThread { fn perform_post_main_layout_passes( &self, data: &Reflow, - mut root_flow: &mut FlowRef, + root_flow: &mut FlowRef, reflow_goal: &ReflowGoal, document: Option<&ServoLayoutDocument>, layout_context: &mut LayoutContext, @@ -1406,7 +1406,7 @@ impl LayoutThread { data, reflow_goal, document, - FlowRef::deref_mut(&mut root_flow), + FlowRef::deref_mut(root_flow), &mut *layout_context, ); |