]> git.lizzy.rs Git - rust.git/blobdiff - src/lib.rs
set of clippy changes
[rust.git] / src / lib.rs
index 0131aa875d7f9b0a7ffd1c6008538284340a18b4..7ebb967a494ce9ca11cf59dcf193110fc1539d9c 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(tool_attributes)]
 #![feature(decl_macro)]
 #![allow(unused_attributes)]
 #![feature(type_ascription)]
@@ -49,7 +48,7 @@
 
 use comment::LineClasses;
 use failure::Fail;
-use formatting::{SourceFile, FormatErrorMap, FormattingError, ReportedErrors};
+use formatting::{FormatErrorMap, FormattingError, ReportedErrors, SourceFile};
 use issues::Issue;
 use shape::Indent;
 
 mod chains;
 pub(crate) mod checkstyle;
 mod closures;
-pub(crate) mod source_map;
 mod comment;
 pub(crate) mod config;
 mod expr;
-pub(crate) mod source_file;
 pub(crate) mod formatting;
 mod imports;
 mod issues;
@@ -86,6 +83,8 @@
 mod rewrite;
 pub(crate) mod rustfmt_diff;
 mod shape;
+pub(crate) mod source_file;
+pub(crate) mod source_map;
 mod spanned;
 mod string;
 #[cfg(test)]