Skip to content

Commit

Permalink
Fix PluginInstance::access_handler_mut 's signature
Browse files Browse the repository at this point in the history
  • Loading branch information
prokopyl committed Jun 6, 2024
1 parent 3280268 commit bfc9fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl<H: HostHandlers> PluginInstance<H> {
#[inline]
pub fn access_handler_mut<'s, R>(
&'s mut self,
access: impl for<'a> FnOnce(&'s <H as HostHandlers>::MainThread<'a>) -> R,
access: impl for<'a> FnOnce(&'s mut <H as HostHandlers>::MainThread<'a>) -> R,
) -> R {
// SAFETY: we take &mut self, the only reference to the wrapper on the main thread, therefore
// we can guarantee there are no mutable reference anywhere
Expand Down

0 comments on commit bfc9fde

Please sign in to comment.