@@ -55,7 +55,6 @@ use std::borrow::Cow;
5555use std:: cmp:: { max, min, Ordering , Reverse } ;
5656use std:: collections:: { HashMap , VecDeque } ;
5757use std:: fmt;
58- use std:: ops:: Range ;
5958use stylesheet:: Stylesheet ;
6059
6160const ANONYMIZED_LINE_NUM : & str = "LL" ;
@@ -1911,9 +1910,7 @@ impl Renderer {
19111910 assert ! ( underline_start >= 0 && underline_end >= 0 ) ;
19121911 let padding: usize = max_line_num_len + 3 ;
19131912 for p in underline_start..underline_end {
1914- if matches ! ( show_code_change, DisplaySuggestion :: Underline )
1915- && is_different ( sm, & part. replacement , part. span . clone ( ) )
1916- {
1913+ if matches ! ( show_code_change, DisplaySuggestion :: Underline ) {
19171914 // If this is a replacement, underline with `~`, if this is an addition
19181915 // underline with `+`.
19191916 buffer. putc (
@@ -2955,14 +2952,6 @@ struct UnderlineParts {
29552952 multiline_bottom_right_with_text : char ,
29562953}
29572954
2958- /// Whether the original and suggested code are the same.
2959- pub ( crate ) fn is_different ( sm : & SourceMap < ' _ > , suggested : & str , range : Range < usize > ) -> bool {
2960- match sm. span_to_snippet ( range) {
2961- Some ( s) => s != suggested,
2962- None => true ,
2963- }
2964- }
2965-
29662955#[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
29672956pub enum OutputTheme {
29682957 Ascii ,
0 commit comments