~kennylevinsen/greetd

67eaa39b936e07e4415497031efcfc74178469da — Hugo Osvaldo Barrera 3 months ago 195a811 master
Derive VtSelection::default
1 files changed, 2 insertions(+), 7 deletions(-)

M greetd/src/config/mod.rs
M greetd/src/config/mod.rs => greetd/src/config/mod.rs +2 -7
@@ 9,20 9,15 @@ const RUNFILE: &str = "/run/greetd.run";
const GENERAL_SERVICE: &str = "greetd";
const GREETER_SERVICE: &str = "greetd-greeter";

#[derive(Debug, Eq, PartialEq)]
#[derive(Debug, Eq, PartialEq, Default)]
pub enum VtSelection {
    Next,
    Current,
    #[default]
    None,
    Specific(usize),
}

impl Default for VtSelection {
    fn default() -> Self {
        VtSelection::None
    }
}

#[derive(Debug, Eq, PartialEq, Default)]
pub struct ConfigSession {
    pub command: String,