title: My test fails at "attempt to subtract with overflow"
body: <pre><code>use itertools::Itertools;
  
  #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
  struct Runner {
      sec: u16,
  }
  
  impl Runner {
      fn from(v: (u8, u8, u8)) -&gt; Runner {
          Runner {
              sec: v.0 as u16 * 3600 + v.1 as u16 * 60 + v.2 as u16
          }
      }
  }
  
  
  fn parse_runner(strg: &amp;str) -&gt; Vec&lt;Runner&gt; {
      strg.split(&quot;, &quot;)
          .flat_map(|personal_result| personal_result.split('|'))
          .map(|x| x.parse::&lt;u8&gt;().unwrap())
          .tuples::&lt;(_, _, _)&gt;()
          .map(|x| Runner::from(x))
          .sorted()
          .collect::&lt;Vec&lt;Runner&gt;&gt;()
  }
  
  fn parse_to_format(x: u16) -&gt; String {
      let h = x / 3600;
      let m = (x - 3600)/60;
      let s = x % 60;
  
      format!(&quot;{:02}|{:02}|{:02}&quot;, h, m, s)
  }
  
  fn return_stats(runners: &amp;[Runner]) -&gt; String {
      let range: u16 = runners.last().unwrap().sec - runners.first().unwrap().sec;
      let average: u16 = runners.iter().map(|&amp;r| r.sec).sum::&lt;u16&gt;()/(runners.len() as u16);
      let median: u16 = if runners.len()%2 != 0 {
          runners.get(runners.len()/2).unwrap().sec
      } else {
          runners.get(runners.len()/2).unwrap().sec/2 + runners.get((runners.len()/2) + 1).unwrap().sec/2
      };
      format!(&quot;Range: {} Average: {} Median: {}&quot;, parse_to_format(range), parse_to_format(average), parse_to_format(median))
  
  }
  
  fn stati(strg: &amp;str) -&gt; String {
      let run_vec = parse_runner(strg);
      return_stats(&amp;run_vec)
  }
  </code></pre>
  <p>I cant find the mistake I made with supposedly substraction to make my code pass the test. Basically I'm trying to start with a &amp;str like &quot;01|15|59, 1|47|6, 01|17|20, 1|32|34, 2|3|17&quot; and end up with another one like &quot;Range: 00|47|18 Average: 01|35|15 Median: 01|32|34&quot;</p>
  <p>Sorry in advance for my mistake if it is really stupid, I've been trying to fix it for quite a while</p>
  <p><a href="https://www.codewars.com/kata/55b3425df71c1201a800009c/train/rust" rel="nofollow noreferrer">https://www.codewars.com/kata/55b3425df71c1201a800009c/train/rust</a></p>