Use surf in pokedex example

This commit is contained in:
Héctor Ramón Jiménez 2019-12-14 00:32:05 +01:00
parent ffa46898d9
commit f0381a7fb3
3 changed files with 11 additions and 16 deletions

View file

@ -92,7 +92,7 @@ impl Application for Timer {
let duration = Text::new(format!(
"{:0>2}:{:0>2}:{:0>2}.{:0>2}",
seconds / HOUR,
seconds / MINUTE,
(seconds % HOUR) / MINUTE,
seconds % MINUTE,
self.duration.subsec_millis() / 10,
))