Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit fb975cd

Browse files
committed
fix clippy::map_identity: remove redundant .map(|x| x) call
1 parent fca81fa commit fb975cd

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_parse_format

1 file changed

+1
-1
lines changed

src/librustc_parse_format/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ fn find_skips_from_snippet(
820820
}
821821

822822
let r_start = str_style.map(|r| r + 1).unwrap_or(0);
823-
let r_end = str_style.map(|r| r).unwrap_or(0);
823+
let r_end = str_style.unwrap_or(0);
824824
let s = &snippet[r_start + 1..snippet.len() - r_end - 1];
825825
(find_skips(s, str_style.is_some()), true)
826826
}

0 commit comments

Comments
 (0)