Mercurial > templog
diff rust/src/types.rs @ 621:8136a6b99866 rust
make it compile again
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 15 Apr 2017 23:39:23 +0800 |
parents | 87a78343140e |
children | 03167105f6de |
line wrap: on
line diff
--- a/rust/src/types.rs Thu Mar 23 00:20:22 2017 +0800 +++ b/rust/src/types.rs Sat Apr 15 23:39:23 2017 +0800 @@ -238,7 +238,7 @@ self.trim(); } - fn integrate(&self) -> Duration { + pub fn integrate(&self) -> Duration { let durs = self.on_periods.iter().map(|p| { let end = p.end.unwrap_or_else(|| Instant::now()); end - p.start