fn friendly_spent_time(dur: Duration, status: Status) -> impl Display {
  if dur == Duration::zero() {
    return String::new().normal();
  }

  let output = friendly_duration(dur);

  match status {
    Status::Ongoing => output.blue(),
    _ => output.bright_black(),
  }
}
/// String representation of a spent-time.
///
/// If no time has been spent on this task, an empty string is returned.
String representation of a spent-time.
If no time has been spent on this task, an empty string is returned.
String representation of a spent - time . If no time has been spent on this task an empty string is returned .
fn friendly_spent_time(dur: Duration, status: Status) -> impl Display {
  if dur == Duration::zero() {
    return String::new().normal();
  }
  let output = friendly_duration(dur);
  match status {
    Status::Ongoing => output.blue(),
    _ => output.bright_black(),
  }
}
fn friendly_spent_time ( dur : Duration , status : Status ) -> impl Display { if dur == Duration :: zero ( ) { return String :: new ( ) . normal ( ) ; } let output = friendly_duration ( dur ) ; match status { Status :: Ongoing => output . blue ( ) , _ => output . bright_black ( ) , } }
String representation of a spent-time.
String representation of a spent - time .
dur
Duration
status
Status
dur
Duration
status
Status