cargo fmt
This commit is contained in:
parent
cd77229199
commit
7f8d32429b
|
@ -151,7 +151,9 @@ pub fn auto_session_bind<Data: 'static>(
|
|||
) -> ::std::result::Result<BoundAutoSession, IoError> {
|
||||
Ok(match notifier {
|
||||
#[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)?),
|
||||
})
|
||||
}
|
||||
|
@ -227,7 +229,7 @@ impl SessionNotifier for AutoSessionNotifier {
|
|||
direct.unregister(signal)
|
||||
}
|
||||
// this pattern is needed when the logind backend is activated
|
||||
_ => unreachable!()
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue