fix clippy::map_identity: remove redundant .map(|x| x) call
This commit is contained in:
parent
fca81fa3cd
commit
fb975cd6fb
1 changed files with 1 additions and 1 deletions
|
|
@ -820,7 +820,7 @@ fn find_skips_from_snippet(
|
|||
}
|
||||
|
||||
let r_start = str_style.map(|r| r + 1).unwrap_or(0);
|
||||
let r_end = str_style.map(|r| r).unwrap_or(0);
|
||||
let r_end = str_style.unwrap_or(0);
|
||||
let s = &snippet[r_start + 1..snippet.len() - r_end - 1];
|
||||
(find_skips(s, str_style.is_some()), true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue