Format source codes and update tests
This commit is contained in:
parent
7bf9aa25be
commit
c28df858c7
@ -11,11 +11,11 @@
|
||||
#![cfg(not(test))]
|
||||
|
||||
|
||||
extern crate env_logger;
|
||||
extern crate getopts;
|
||||
extern crate log;
|
||||
extern crate rustfmt_nightly as rustfmt;
|
||||
extern crate toml;
|
||||
extern crate env_logger;
|
||||
extern crate getopts;
|
||||
|
||||
use std::{env, error};
|
||||
use std::fs::File;
|
||||
|
14
src/lib.rs
14
src/lib.rs
@ -10,23 +10,19 @@
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
extern crate diff;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
extern crate regex;
|
||||
extern crate rustc_errors as errors;
|
||||
extern crate serde;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
extern crate serde_json;
|
||||
|
||||
extern crate syntax;
|
||||
extern crate rustc_errors as errors;
|
||||
|
||||
extern crate strings;
|
||||
|
||||
extern crate unicode_segmentation;
|
||||
extern crate regex;
|
||||
extern crate diff;
|
||||
extern crate syntax;
|
||||
extern crate term;
|
||||
extern crate unicode_segmentation;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::fmt;
|
||||
|
@ -3,6 +3,13 @@
|
||||
extern crate foo ;
|
||||
extern crate foo as bar ;
|
||||
|
||||
extern crate futures;
|
||||
extern crate dotenv;
|
||||
extern crate chrono;
|
||||
|
||||
extern crate foo;
|
||||
extern crate bar;
|
||||
|
||||
extern "C" {
|
||||
fn c_func(x: *mut *mut libc::c_void);
|
||||
|
||||
|
@ -8,9 +8,9 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate rustfmt_nightly as rustfmt;
|
||||
extern crate diff;
|
||||
extern crate regex;
|
||||
extern crate rustfmt_nightly as rustfmt;
|
||||
extern crate term;
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
@ -1,17 +1,17 @@
|
||||
// Attributes on extern crate.
|
||||
|
||||
extern crate Foo;
|
||||
#[Attr1]
|
||||
extern crate Bar;
|
||||
#[Attr2]
|
||||
#[Attr2]
|
||||
extern crate Baz;
|
||||
extern crate Foo;
|
||||
|
||||
fn foo() {
|
||||
extern crate Foo;
|
||||
#[Attr1]
|
||||
extern crate Bar;
|
||||
#[Attr2]
|
||||
#[Attr2]
|
||||
extern crate Baz;
|
||||
extern crate Foo;
|
||||
}
|
||||
|
@ -1,7 +1,14 @@
|
||||
// rustfmt-normalize_comments: true
|
||||
|
||||
extern crate foo;
|
||||
extern crate foo as bar;
|
||||
extern crate foo;
|
||||
|
||||
extern crate chrono;
|
||||
extern crate dotenv;
|
||||
extern crate futures;
|
||||
|
||||
extern crate bar;
|
||||
extern crate foo;
|
||||
|
||||
extern "C" {
|
||||
fn c_func(x: *mut *mut libc::c_void);
|
||||
|
Loading…
Reference in New Issue
Block a user