cargo fmt

This commit is contained in:
Victor Berger 2018-09-27 21:17:10 +02:00
parent cd77229199
commit 7f8d32429b
1 changed files with 4 additions and 2 deletions

View File

@ -151,7 +151,9 @@ pub fn auto_session_bind<Data: 'static>(
) -> ::std::result::Result<BoundAutoSession, IoError> { ) -> ::std::result::Result<BoundAutoSession, IoError> {
Ok(match notifier { Ok(match notifier {
#[cfg(feature = "backend_session_logind")] #[cfg(feature = "backend_session_logind")]
AutoSessionNotifier::Logind(logind) => BoundAutoSession::Logind(logind_session_bind(logind, handle).map_err(|(e, _)| e)?), AutoSessionNotifier::Logind(logind) => {
BoundAutoSession::Logind(logind_session_bind(logind, handle).map_err(|(e, _)| e)?)
}
AutoSessionNotifier::Direct(direct) => BoundAutoSession::Direct(direct_session_bind(direct, handle)?), AutoSessionNotifier::Direct(direct) => BoundAutoSession::Direct(direct_session_bind(direct, handle)?),
}) })
} }
@ -227,7 +229,7 @@ impl SessionNotifier for AutoSessionNotifier {
direct.unregister(signal) direct.unregister(signal)
} }
// this pattern is needed when the logind backend is activated // this pattern is needed when the logind backend is activated
_ => unreachable!() _ => unreachable!(),
} }
} }