From bd8c467be2423d4eb38eced842bc85f902b07879 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Mon, 5 Aug 2024 20:41:23 +0859 Subject: [PATCH] chore: update --- iced_layershell/src/multi_window.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iced_layershell/src/multi_window.rs b/iced_layershell/src/multi_window.rs index 1b21025..6115733 100644 --- a/iced_layershell/src/multi_window.rs +++ b/iced_layershell/src/multi_window.rs @@ -273,7 +273,7 @@ where } let poll = instance.as_mut().poll(&mut context); match poll { - task::Poll::Pending => 'peddingBlock: { + task::Poll::Pending => { if let Ok(Some(flow)) = control_receiver.try_next() { for flow in flow { match flow { @@ -318,20 +318,20 @@ where LayerShellActions::Mouse(mouse) => { let Some(pointer) = ev.get_pointer() else { - break 'peddingBlock ReturnData::None; + return ReturnData::None; }; - break 'peddingBlock ReturnData::RequestSetCursorShape(( + return ReturnData::RequestSetCursorShape(( conversion::mouse_interaction(mouse), pointer.clone(), pointer_serial, )); } LayerShellActions::RedrawAll => { - break 'peddingBlock ReturnData::RedrawAllRequest; + return ReturnData::RedrawAllRequest; } LayerShellActions::RedrawWindow(index) => { - break 'peddingBlock ReturnData::RedrawIndexRequest(index); + return ReturnData::RedrawIndexRequest(index); } _ => {} }