mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
fmt
This commit is contained in:
parent
dc2ee91b7e
commit
9420739c3c
1 changed files with 5 additions and 6 deletions
11
src/app.rs
11
src/app.rs
|
@ -11,11 +11,11 @@ use crate::util::{Event, Events};
|
|||
use std::cmp::Ordering;
|
||||
use std::convert::TryInto;
|
||||
use std::error::Error;
|
||||
use std::fs;
|
||||
use std::path::Path;
|
||||
use std::process::Command;
|
||||
use std::result::Result;
|
||||
use std::time::SystemTime;
|
||||
use std::fs;
|
||||
use std::path::Path;
|
||||
|
||||
use task_hookrs::date::Date;
|
||||
use task_hookrs::import::import;
|
||||
|
@ -950,13 +950,12 @@ impl TTApp {
|
|||
// time shifts, cap maximum wait to 1 min
|
||||
let now = SystemTime::now();
|
||||
let max_delta = Duration::from_secs(60);
|
||||
Ok(now.duration_since(prev)? > max_delta)
|
||||
Ok(now.duration_since(prev)? > max_delta)
|
||||
}
|
||||
},
|
||||
}
|
||||
Err(_) => Ok(true),
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
Ok(true)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue