forked from janek/mostr
style(tasks): reformat
This commit is contained in:
parent
5a8fa69e4c
commit
cc64c0f493
10
src/tasks.rs
10
src/tasks.rs
|
@ -302,7 +302,6 @@ impl TasksRelay {
|
|||
Durations::from(self.get_own_events_history(), &vec![&id]).sum::<Duration>().as_secs()
|
||||
}
|
||||
|
||||
|
||||
/// Total time in seconds tracked on this task and its subtasks by all users.
|
||||
fn total_time_tracked(&self, id: EventId) -> u64 {
|
||||
let mut total = 0;
|
||||
|
@ -1256,10 +1255,11 @@ where
|
|||
}
|
||||
|
||||
/// Formats the given seconds according to the given format.
|
||||
/// MMM - minutes
|
||||
/// MM - minutes of the hour
|
||||
/// HH - hours
|
||||
/// Returns an empty string if under a minute.
|
||||
/// - MMM - minutes
|
||||
/// - MM - minutes of the hour
|
||||
/// - HH - hours
|
||||
///
|
||||
/// Returns an empty string if under one minute.
|
||||
fn display_time(format: &str, secs: u64) -> String {
|
||||
Some(secs / 60)
|
||||
.filter(|t| t > &0)
|
||||
|
|
Loading…
Reference in New Issue