@@ -5,7 +5,7 @@ use syntax::source_map::{self, BytePos, Pos, SourceMap, Span};
5
5
use syntax:: { ast, visit} ;
6
6
7
7
use crate :: attr:: * ;
8
- use crate :: comment:: { CodeCharKind , CommentCodeSlices , FindUncommented } ;
8
+ use crate :: comment:: { CodeCharKind , CommentCodeSlices } ;
9
9
use crate :: config:: file_lines:: FileName ;
10
10
use crate :: config:: { BraceStyle , Config , Version } ;
11
11
use crate :: expr:: { format_expr, ExprType } ;
@@ -359,13 +359,8 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
359
359
match item. node {
360
360
ast:: ItemKind :: Use ( ref tree) => self . format_import ( item, tree) ,
361
361
ast:: ItemKind :: Impl ( ..) => {
362
- let snippet = self . snippet ( item. span ) ;
363
- let where_span_end = snippet
364
- . find_uncommented ( "{" )
365
- . map ( |x| BytePos ( x as u32 ) + source ! ( self , item. span) . lo ( ) ) ;
366
362
let block_indent = self . block_indent ;
367
- let rw = self
368
- . with_context ( |ctx| format_impl ( & ctx, item, block_indent, where_span_end) ) ;
363
+ let rw = self . with_context ( |ctx| format_impl ( & ctx, item, block_indent) ) ;
369
364
self . push_rewrite ( item. span , rw) ;
370
365
}
371
366
ast:: ItemKind :: Trait ( ..) => {
0 commit comments