fix yet even more errors with logind backend

This commit is contained in:
Victor Berger 2018-09-25 11:55:30 +02:00
parent 95d55f4b96
commit 6328f68b71
1 changed files with 2 additions and 2 deletions

View File

@ -447,10 +447,10 @@ pub fn logind_session_bind<Data: 'static>(
.clone() .clone()
.into_iter() .into_iter()
.map(|watch| { .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()); source.set_interest(Ready::readable() | Ready::writable());
handle.insert_source(source, { handle.insert_source(source, {
let notifier = notifier.clone(); let mut notifier = notifier.clone();
move |evt, _| notifier.event(evt) move |evt, _| notifier.event(evt)
}) })
}).collect::<::std::result::Result<Vec<Source<Generic<EventedRawFd>>>, IoError>>() }).collect::<::std::result::Result<Vec<Source<Generic<EventedRawFd>>>, IoError>>()