fixed formating
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -175,12 +175,12 @@ fn main() {
|
|||||||
|
|
||||||
let mut tasks: Vec<NaiveDateTime> = Vec::new();
|
let mut tasks: Vec<NaiveDateTime> = Vec::new();
|
||||||
for due in parsed.members() {
|
for due in parsed.members() {
|
||||||
tasks.push(
|
tasks.push(NaiveDateTime::from_timestamp(
|
||||||
NaiveDateTime::from_timestamp(due["due"].as_i64().unwrap(), 0)
|
due["due"].as_i64().unwrap(),
|
||||||
);
|
0,
|
||||||
|
));
|
||||||
}
|
}
|
||||||
let state =
|
let state = match get_status(tasks, args.threshold_warn, args.threshold_crit) {
|
||||||
match get_status(tasks, args.threshold_warn, args.threshold_crit) {
|
|
||||||
Ok(s) => s,
|
Ok(s) => s,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
eprintln!("{}", e);
|
eprintln!("{}", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user