]> git.lizzy.rs Git - rust.git/commitdiff
Merge pull request #2032 from topecongiro/trailing-whitespaces-in-macro-def
authorNick Cameron <nrc@ncameron.org>
Thu, 5 Oct 2017 11:34:12 +0000 (19:34 +0800)
committerGitHub <noreply@github.com>
Thu, 5 Oct 2017 11:34:12 +0000 (19:34 +0800)
Remove trailing whitespaces in macro def

1  2 
src/visitor.rs

diff --cc src/visitor.rs
index ddbbbd49eaa7be10b5ce17bb1c91e72d7caef7b1,29eaea39a7fb6bec953ab86219f8172bfc85cb8a..dba9f9965f3ead8e11ec62114f818e1bf69e8829
@@@ -16,11 -16,10 +16,11 @@@ use syntax::attr::HasAttrs
  use syntax::codemap::{self, BytePos, CodeMap, Pos, Span};
  use syntax::parse::ParseSess;
  
 +use expr::rewrite_literal;
  use spanned::Spanned;
  use codemap::{LineRangeUtils, SpanUtils};
- use comment::{contains_comment, recover_missing_comment_in_span, CodeCharKind, CommentCodeSlices,
-               FindUncommented};
+ use comment::{contains_comment, recover_missing_comment_in_span, remove_trailing_white_spaces,
+               CodeCharKind, CommentCodeSlices, FindUncommented};
  use comment::rewrite_comment;
  use config::{BraceStyle, Config};
  use items::{format_impl, format_struct, format_struct_struct, format_trait,