diff --git a/src/backend/session/dbus/logind.rs b/src/backend/session/dbus/logind.rs index 4928d4f..625802c 100644 --- a/src/backend/session/dbus/logind.rs +++ b/src/backend/session/dbus/logind.rs @@ -447,10 +447,10 @@ pub fn logind_session_bind( .clone() .into_iter() .map(|watch| { - let source = Generic::from_raw_fd(watch.fd()); + let mut source = Generic::from_raw_fd(watch.fd()); source.set_interest(Ready::readable() | Ready::writable()); handle.insert_source(source, { - let notifier = notifier.clone(); + let mut notifier = notifier.clone(); move |evt, _| notifier.event(evt) }) }).collect::<::std::result::Result>>, IoError>>()