From 6328f68b71876289ea3732a9ff15a1661962591a Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Tue, 25 Sep 2018 11:55:30 +0200 Subject: [PATCH] fix yet even more errors with logind backend --- src/backend/session/dbus/logind.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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>>()