1
98
#[derive(Default, Debug)]
2
pub struct Config {
3
49
    pub display_line_numbers: bool,
4
49
    pub display_stats: bool,
5
}
6

            
7
impl Config {
8
    #[must_use]
9
5
    pub fn toggle(config: bool) -> bool {
10
5
        !config
11
10
    }
12
}
13

            
14
#[cfg(test)]
15
#[path = "./config_test.rs"]
16
mod config_test;