diff options
author | 2024-05-08 23:14:37 +0200 | |
---|---|---|
committer | 2024-05-08 23:14:37 +0200 | |
commit | 718fe5b7de6c705b1797c49d382182182acdbe80 (patch) | |
tree | fe144f97299c14d93d6a9e26bf5bff4f90ab12bc /runtime/src/window.rs | |
parent | 7e7af91e6f7dc187e8fb95746d8811289a088217 (diff) | |
download | iced-718fe5b7de6c705b1797c49d382182182acdbe80.tar.gz iced-718fe5b7de6c705b1797c49d382182182acdbe80.tar.bz2 iced-718fe5b7de6c705b1797c49d382182182acdbe80.zip |
Pass `WindowHandle` by value to `window::run_with_handle`
Diffstat (limited to 'runtime/src/window.rs')
-rw-r--r-- | runtime/src/window.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/window.rs b/runtime/src/window.rs index 24171e3e..e32465d3 100644 --- a/runtime/src/window.rs +++ b/runtime/src/window.rs @@ -197,7 +197,7 @@ pub fn change_icon<Message>(id: Id, icon: Icon) -> Command<Message> { /// Note that if the window closes before this call is processed the callback will not be run. pub fn run_with_handle<Message>( id: Id, - f: impl FnOnce(&WindowHandle<'_>) -> Message + 'static, + f: impl FnOnce(WindowHandle<'_>) -> Message + 'static, ) -> Command<Message> { Command::single(command::Action::Window(Action::RunWithHandle( id, |