Skip to content

Commit

Permalink
avoid warning about unused labels
Browse files Browse the repository at this point in the history
  • Loading branch information
getreu committed Feb 1, 2020
1 parent a47c9b7 commit e9b8392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ pub fn scan<'a>(
let mut is_last_window = false;

// iterate over `input_buffer with ``decoder_input_window`-sized slices.
'input_window_loop: while decoder_input_start < input_buffer.len() {
'_input_window_loop: while decoder_input_start < input_buffer.len() {
decoder_input_end = match decoder_input_start + decoder_input_window {
n if n < input_buffer.len() => n, // There are at least one byte more left in `input_buffer`.
_ => {
Expand Down Expand Up @@ -279,7 +279,7 @@ pub fn scan<'a>(
// Now we split `split_str_buffer` into substrings and store them in
// vector `fc.v`.

'chunk_loop: for chunk in SplitStr::new(
'_chunk_loop: for chunk in SplitStr::new(
split_str_buffer,
ss.mission.chars_min_nb,
continue_str_if_possible,
Expand Down

0 comments on commit e9b8392

Please sign in to comment.