Skip to content

Commit c108024

Browse files
authored
feat(tauri): derive Clone for tauri::ExitRequestApi (#12710)
1 parent dc90cd3 commit c108024

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/clone-ExitRequestApi.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
tauri: 'minor:feat'
3+
---
4+
5+
derive `Clone` for `tauri::ExitRequestApi`.

crates/tauri/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub type ChannelInterceptor<R> =
7272
pub const RESTART_EXIT_CODE: i32 = i32::MAX;
7373

7474
/// Api exposed on the `ExitRequested` event.
75-
#[derive(Debug)]
75+
#[derive(Debug, Clone)]
7676
pub struct ExitRequestApi(Sender<ExitRequestedEventAction>);
7777

7878
impl ExitRequestApi {

0 commit comments

Comments
 (0)