Skip to content

Commit d077075

Browse files
committed
Fix stop signature
1 parent 465a834 commit d077075

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rustler/src/resource/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub trait Resource: Sized + Send + Sync + 'static {
5757
/// - event is the OS event
5858
/// - is_direct_call is true if the call is made directly from enif_select or false if it is a scheduled call (potentially from another thread).
5959
#[allow(unused_mut, unused)]
60-
fn stop(mut self, env: Env<'_>, event: Event, direct_call: bool) {}
60+
fn stop<'a>(&'a self, env: Env<'a>, event: Event, direct_call: bool) {}
6161

6262
/// Callback function to handle process monitoring.
6363
///

0 commit comments

Comments
 (0)