clippy: Fix needless_lifetimes warnings (#31933)

This commit is contained in:
Oluwatobi Sofela 2024-03-29 12:59:07 +01:00 committed by GitHub
parent a8976ff00a
commit 4a68243f65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 32 additions and 32 deletions

View file

@ -509,10 +509,10 @@ impl LayoutThread {
}
/// Receives and dispatches messages from other threads.
fn handle_request_helper<'a, 'b>(
fn handle_request_helper(
&mut self,
request: Msg,
possibly_locked_rw_data: &mut RwData<'a, 'b>,
possibly_locked_rw_data: &mut RwData<'_, '_>,
) {
match request {
Msg::SetQuirksMode(mode) => self.handle_set_quirks_mode(mode),
@ -561,10 +561,10 @@ impl LayoutThread {
}
}
fn collect_reports<'a, 'b>(
fn collect_reports(
&self,
reports_chan: ReportsChan,
possibly_locked_rw_data: &mut RwData<'a, 'b>,
possibly_locked_rw_data: &mut RwData<'_, '_>,
) {
let mut reports = vec![];
// Servo uses vanilla jemalloc, which doesn't have a
@ -873,10 +873,10 @@ impl LayoutThread {
}
/// The high-level routine that performs layout.
fn handle_reflow<'a, 'b>(
fn handle_reflow(
&mut self,
data: &mut ScriptReflowResult,
possibly_locked_rw_data: &mut RwData<'a, 'b>,
possibly_locked_rw_data: &mut RwData<'_, '_>,
) {
let document = unsafe { ServoLayoutNode::new(&data.document) };
let document = document.as_document().unwrap();
@ -1289,10 +1289,10 @@ impl LayoutThread {
);
}
fn set_scroll_states<'a, 'b>(
fn set_scroll_states(
&mut self,
new_scroll_states: Vec<ScrollState>,
possibly_locked_rw_data: &mut RwData<'a, 'b>,
possibly_locked_rw_data: &mut RwData<'_, '_>,
) {
let mut rw_data = possibly_locked_rw_data.lock();
let mut script_scroll_states = vec![];