mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
fix clippy::map_identity: remove redundant .map(|x| x) call
This commit is contained in:
parent
fca81fa3cd
commit
fb975cd6fb
@ -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…
Reference in New Issue
Block a user