summaryrefslogtreecommitdiffstats
path: root/runtime/src/window/action.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-08 23:14:37 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-08 23:14:37 +0200
commit718fe5b7de6c705b1797c49d382182182acdbe80 (patch)
treefe144f97299c14d93d6a9e26bf5bff4f90ab12bc /runtime/src/window/action.rs
parent7e7af91e6f7dc187e8fb95746d8811289a088217 (diff)
downloadiced-718fe5b7de6c705b1797c49d382182182acdbe80.tar.gz
iced-718fe5b7de6c705b1797c49d382182182acdbe80.tar.bz2
iced-718fe5b7de6c705b1797c49d382182182acdbe80.zip
Pass `WindowHandle` by value to `window::run_with_handle`
Diffstat (limited to '')
-rw-r--r--runtime/src/window/action.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/window/action.rs b/runtime/src/window/action.rs
index e44ff5a6..07e77872 100644
--- a/runtime/src/window/action.rs
+++ b/runtime/src/window/action.rs
@@ -106,7 +106,7 @@ pub enum Action<T> {
/// said, it's usually in the same ballpark as on Windows.
ChangeIcon(Id, Icon),
/// Runs the closure with the native window handle of the window with the given [`Id`].
- RunWithHandle(Id, Box<dyn FnOnce(&WindowHandle<'_>) -> T + 'static>),
+ RunWithHandle(Id, Box<dyn FnOnce(WindowHandle<'_>) -> T + 'static>),
/// Screenshot the viewport of the window.
Screenshot(Id, Box<dyn FnOnce(Screenshot) -> T + 'static>),
}