Skip to content

Commit

Permalink
fix: align emit_to signature to tauri
Browse files Browse the repository at this point in the history
  • Loading branch information
mlthlschr committed Nov 9, 2024
1 parent 35132a8 commit 1e608a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,16 @@ pub trait Event: NamedType {
}

/// Emits an event to all [targets](EventTarget) matching the given target.
fn emit_to<R: Runtime, H: Emitter<R> + Manager<R>>(
fn emit_to<R: Runtime, H: Emitter<R> + Manager<R>, I: Into<EventTarget>>(
&self,
handle: &H,
label: &str,
target: I,
) -> tauri::Result<()>
where
Self: Serialize + Clone,
{
handle.emit_to(
label,
target,
&EventRegistry::get_event_name::<Self, _>(handle, Self::NAME),
self,
)
Expand Down

0 comments on commit 1e608a7

Please sign in to comment.