Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
fix up missing Send Sync bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Aug 6, 2023
1 parent 6fbe7e1 commit 32cb6ee
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions core/src/ambient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ mod std_support {

pub fn get() -> Option<
Ambient<
&'static dyn ErasedTarget,
&'static dyn ErasedFilter,
&'static dyn ErasedCtxt,
&'static dyn ErasedClock,
&'static dyn ErasedIdGen,
&'static (dyn ErasedTarget + Send + Sync),
&'static (dyn ErasedFilter + Send + Sync),
&'static (dyn ErasedCtxt + Send + Sync),
&'static (dyn ErasedClock + Send + Sync),
&'static (dyn ErasedIdGen + Send + Sync),
>,
> {
let ambient = AMBIENT.get()?;
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ pub fn emit(evt: &Event<impl Props>) {

pub type Ambient = Option<
emit_core::ambient::Ambient<
&'static dyn ErasedTarget,
&'static dyn ErasedFilter,
&'static dyn ErasedCtxt,
&'static dyn ErasedClock,
&'static dyn ErasedIdGen,
&'static (dyn ErasedTarget + Send + Sync),
&'static (dyn ErasedFilter + Send + Sync),
&'static (dyn ErasedCtxt + Send + Sync),
&'static (dyn ErasedClock + Send + Sync),
&'static (dyn ErasedIdGen + Send + Sync),
>,
>;

Expand Down
2 changes: 1 addition & 1 deletion src/macro_hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ pub fn __private_emit(
}

#[track_caller]
pub fn __private_with(props: impl Props) -> LocalFrame<impl Ctxt> {
pub fn __private_with(props: impl Props) -> LocalFrame<impl Ctxt + Send + Sync + 'static> {
let ambient = ambient::get();

base_with(ambient, props)
Expand Down

0 comments on commit 32cb6ee

Please sign in to comment.