1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#![allow(unused_assignments)]
extern crate notify;
extern crate directories;
extern crate toml;
#[macro_use] extern crate serde_derive;
#[macro_use] extern crate log;
mod config;
mod calc;
mod track;
mod clear;
mod schedule;
use config::Configuration;
pub use config::get_config;
pub struct TimeTracker<'a> {
config: &'a Configuration
}
impl<'a> TimeTracker<'a> {
pub fn new(config: &'a Configuration) -> Self {
TimeTracker {
config
}
}
}