Skip to content

Commit

Permalink
Remove rust >1.56 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-dupre committed Feb 10, 2024
1 parent 7c68426 commit 07a96f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,9 @@ pub fn slice_str<'a>(s: &'a str, head: &str, bounds: Range<usize>, tail: &str) -
let mut front_ansi = String::new();

while pos < bounds.start {
let Some((sub, is_ansi)) = code_iter.peek_mut() else {
break;
let (sub, is_ansi) = match code_iter.peek_mut() {
Some(x) => x,
None => break,
};

if *is_ansi {
Expand Down

0 comments on commit 07a96f4

Please sign in to comment.