message: use while let instead of loop and if.
  as per CR comment
diff: @@ -112,10 +112,8 @@ fn search_fragments<'a>(
  let mut fragment = FragmentCandidate::new(0, 0);
  let mut fragments:Vec<FragmentCandidate> = vec![];
  - loop {
  - if let Some(next) = token_stream.next() {
  + while let Some(next) = token_stream.next() {
  if (next.offset_to - fragment.start_offset) > max_num_chars {
  - let txt = &text[fragment.start_offset..fragment.stop_offset];
  if fragment.score > 0.0 {
  fragments.push(fragment)
  };
  @@ -124,13 +122,9 @@ fn search_fragments<'a>(
  fragment.calculate_score(next, &terms);
  fragment.stop_offset = next.offset_to;
  }
  - } else {
  - let txt = &text[fragment.start_offset..fragment.stop_offset];
  + }
  if fragment.score > 0.0 {
  fragments.push(fragment)
  - };
  - break;
  - }
  }
  fragments
  