From e3113caa7274bc9bd38bd41eddfa803a1bb5da7f Mon Sep 17 00:00:00 2001 From: Drakulix Date: Sun, 18 Feb 2018 13:46:26 +0100 Subject: [PATCH] Add new travis feature for logind --- .travis.yml | 1 + src/backend/session/auto.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 73bb244..1243de1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,6 +36,7 @@ env: - FEATURES="backend_udev" - FEATURES="backend_session" - FEATURES="backend_session_udev" + - FEATURES="backend_session_logind" - FEATURES="renderer_glium" # test default features - FEATURES="default" diff --git a/src/backend/session/auto.rs b/src/backend/session/auto.rs index 56c4e64..7c6530a 100644 --- a/src/backend/session/auto.rs +++ b/src/backend/session/auto.rs @@ -79,7 +79,8 @@ pub enum BoundAutoSession { pub struct AutoId(AutoIdInternal); #[derive(PartialEq, Eq)] enum AutoIdInternal { - #[cfg(feature = "backend_session_logind")] Logind(logind::Id), + #[cfg(feature = "backend_session_logind")] + Logind(logind::Id), Direct(direct::Id), }