1
Fork 0

Format source codes and update tests

This commit is contained in:
topecongiro 2017-08-09 00:16:35 +09:00
parent 7bf9aa25be
commit c28df858c7
6 changed files with 25 additions and 15 deletions

View file

@ -11,11 +11,11 @@
#![cfg(not(test))] #![cfg(not(test))]
extern crate env_logger;
extern crate getopts;
extern crate log; extern crate log;
extern crate rustfmt_nightly as rustfmt; extern crate rustfmt_nightly as rustfmt;
extern crate toml; extern crate toml;
extern crate env_logger;
extern crate getopts;
use std::{env, error}; use std::{env, error};
use std::fs::File; use std::fs::File;

View file

@ -10,23 +10,19 @@
#![feature(rustc_private)] #![feature(rustc_private)]
extern crate diff;
#[macro_use] #[macro_use]
extern crate log; extern crate log;
extern crate regex;
extern crate rustc_errors as errors;
extern crate serde; extern crate serde;
#[macro_use] #[macro_use]
extern crate serde_derive; extern crate serde_derive;
extern crate serde_json; extern crate serde_json;
extern crate syntax;
extern crate rustc_errors as errors;
extern crate strings; extern crate strings;
extern crate syntax;
extern crate unicode_segmentation;
extern crate regex;
extern crate diff;
extern crate term; extern crate term;
extern crate unicode_segmentation;
use std::collections::HashMap; use std::collections::HashMap;
use std::fmt; use std::fmt;

View file

@ -3,6 +3,13 @@
extern crate foo ; extern crate foo ;
extern crate foo as bar ; extern crate foo as bar ;
extern crate futures;
extern crate dotenv;
extern crate chrono;
extern crate foo;
extern crate bar;
extern "C" { extern "C" {
fn c_func(x: *mut *mut libc::c_void); fn c_func(x: *mut *mut libc::c_void);

View file

@ -8,9 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
extern crate rustfmt_nightly as rustfmt;
extern crate diff; extern crate diff;
extern crate regex; extern crate regex;
extern crate rustfmt_nightly as rustfmt;
extern crate term; extern crate term;
use std::collections::HashMap; use std::collections::HashMap;

View file

@ -1,17 +1,17 @@
// Attributes on extern crate. // Attributes on extern crate.
extern crate Foo;
#[Attr1] #[Attr1]
extern crate Bar; extern crate Bar;
#[Attr2] #[Attr2]
#[Attr2] #[Attr2]
extern crate Baz; extern crate Baz;
extern crate Foo;
fn foo() { fn foo() {
extern crate Foo;
#[Attr1] #[Attr1]
extern crate Bar; extern crate Bar;
#[Attr2] #[Attr2]
#[Attr2] #[Attr2]
extern crate Baz; extern crate Baz;
extern crate Foo;
} }

View file

@ -1,7 +1,14 @@
// rustfmt-normalize_comments: true // rustfmt-normalize_comments: true
extern crate foo;
extern crate foo as bar; 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" { extern "C" {
fn c_func(x: *mut *mut libc::c_void); fn c_func(x: *mut *mut libc::c_void);