From 77f7b43548ca8450e663ce456c59a44c723235ec Mon Sep 17 00:00:00 2001 From: chickenleaf Date: Tue, 8 Oct 2024 15:30:36 +0530 Subject: [PATCH] clippy: Fix large size difference between variants of `ScriptToCompositorMsg` (#33690) * clippy: Fix large size difference between variants in components/shared/webrender/lib.rs Signed-off-by: chickenleaf * clippy: Fix large size difference between variants of ScriptToCompositorMsg Signed-off-by: chickenleaf * Remove trailing white space Signed-off-by: Martin Robinson --------- Signed-off-by: chickenleaf Signed-off-by: Martin Robinson Co-authored-by: Martin Robinson --- components/shared/webrender/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/shared/webrender/lib.rs b/components/shared/webrender/lib.rs index 58580175e7d..3e51e6bc6ea 100644 --- a/components/shared/webrender/lib.rs +++ b/components/shared/webrender/lib.rs @@ -228,7 +228,7 @@ pub enum ScriptToCompositorMsg { /// Inform WebRender of a new display list for the given pipeline. SendDisplayList { /// The [CompositorDisplayListInfo] that describes the display list being sent. - display_list_info: CompositorDisplayListInfo, + display_list_info: Box, /// A descriptor of this display list used to construct this display list from raw data. display_list_descriptor: BuiltDisplayListDescriptor, /// An [ipc::IpcBytesReceiver] used to send the raw data of the display list. @@ -337,13 +337,12 @@ impl WebRenderScriptApi { let (display_list_data, display_list_descriptor) = list.into_data(); let (display_list_sender, display_list_receiver) = ipc::bytes_channel().unwrap(); if let Err(e) = self.0.send(ScriptToCompositorMsg::SendDisplayList { - display_list_info, + display_list_info: Box::new(display_list_info), display_list_descriptor, display_list_receiver, }) { warn!("Error sending display list: {}", e); } - if let Err(error) = display_list_sender.send(&display_list_data.items_data) { warn!("Error sending display list items: {}", error); }