Skip to content

Commit

Permalink
Run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Sep 16, 2019
1 parent 40be3bb commit ebd1052
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 25 deletions.
2 changes: 1 addition & 1 deletion tests/testsuite/alt_registry.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use cargo::util::IntoUrl;
use cargo_test_support::publish::validate_alt_upload;
use cargo_test_support::registry::{self, Package};
use cargo_test_support::{basic_manifest, git, paths, project};
use cargo::util::IntoUrl;
use std::fs::{self, File};
use std::io::Write;

Expand Down
10 changes: 5 additions & 5 deletions tests/testsuite/build.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use std::env;
use std::fs::{self, File};
use std::io::prelude::*;
use cargo::util::paths::dylib_path_envvar;
use cargo_test_support::paths::{root, CargoPathExt};
use cargo_test_support::registry::Package;
use cargo_test_support::{
basic_bin_manifest, basic_lib_manifest, basic_manifest, main_file, project, rustc_host,
sleep_ms, symlink_supported, Execs, ProjectBuilder, t,
sleep_ms, symlink_supported, t, Execs, ProjectBuilder,
};
use cargo::util::paths::dylib_path_envvar;
use std::env;
use std::fs::{self, File};
use std::io::prelude::*;

#[cargo_test]
fn cargo_compile_simple() {
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/build_script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ use std::io;
use std::io::prelude::*;
use std::thread;

use cargo::util::paths::remove_dir_all;
use cargo_test_support::paths::CargoPathExt;
use cargo_test_support::registry::Package;
use cargo_test_support::{basic_manifest, cross_compile, project};
use cargo_test_support::{rustc_host, sleep_ms, slow_cpu_multiplier};
use cargo::util::paths::remove_dir_all;

#[cargo_test]
fn custom_build_script_failed() {
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/cargo_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ use std::io::prelude::*;
use std::path::{Path, PathBuf};
use std::str;

use cargo;
use cargo_test_support::cargo_process;
use cargo_test_support::paths::{self, CargoPathExt};
use cargo_test_support::registry::Package;
use cargo_test_support::{basic_bin_manifest, basic_manifest, cargo_exe, project, Project};
use cargo;

#[cfg_attr(windows, allow(dead_code))]
enum FakeKind<'a> {
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/cfg.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::fmt;
use std::str::FromStr;

use cargo::util::{Cfg, CfgExpr};
use cargo_test_support::registry::Package;
use cargo_test_support::rustc_host;
use cargo_test_support::{basic_manifest, project};
use cargo::util::{Cfg, CfgExpr};

macro_rules! c {
($a:ident) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use std::io;
use std::os;
use std::path::Path;

use cargo_test_support::{paths, project, t};
use cargo::core::{enable_nightly_features, Shell};
use cargo::util::config::{self, Config};
use cargo::util::toml::{self, VecStringOrBool as VSOB};
use cargo_test_support::{paths, project, t};
use serde::Deserialize;

fn lines_match(a: &str, b: &str) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/corrupt_git.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::fs;
use std::path::{Path, PathBuf};

use cargo::util::paths as cargopaths;
use cargo_test_support::paths;
use cargo_test_support::{basic_manifest, git, project};
use cargo::util::paths as cargopaths;

#[cargo_test]
fn deleting_database_files() {
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use cargo_test_support::cargo_process;
use cargo_test_support::git;
use cargo_test_support::paths;
use cargo_test_support::registry::{cksum, Package};
use cargo_test_support::{basic_manifest, project, ProjectBuilder, t};
use cargo_test_support::{basic_manifest, project, t, ProjectBuilder};

fn setup() {
let root = paths::root();
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use std::sync::Arc;
use std::thread;

use cargo_test_support::paths::{self, CargoPathExt};
use cargo_test_support::{sleep_ms, Project, t};
use cargo_test_support::{basic_lib_manifest, basic_manifest, git, main_file, path2url, project};
use cargo_test_support::{sleep_ms, t, Project};

fn disable_git_cli() -> bool {
// mingw git on Windows does not support Windows-style file URIs.
Expand Down
4 changes: 3 additions & 1 deletion tests/testsuite/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ use git2;

use cargo_test_support::cross_compile;
use cargo_test_support::git;
use cargo_test_support::install::{assert_has_installed_exe, assert_has_not_installed_exe, cargo_home};
use cargo_test_support::install::{
assert_has_installed_exe, assert_has_not_installed_exe, cargo_home,
};
use cargo_test_support::paths;
use cargo_test_support::registry::Package;
use cargo_test_support::{basic_manifest, cargo_process, project};
Expand Down
6 changes: 3 additions & 3 deletions tests/testsuite/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ use std::fs::{self, File};
use std::io::prelude::*;
use std::path::PathBuf;

use cargo_test_support::{cargo_process, t};
use cargo_test_support::install::cargo_home;
use cargo_test_support::registry::{self, registry_url};
use cargo::core::Shell;
use cargo::util::config::Config;
use cargo_test_support::install::cargo_home;
use cargo_test_support::registry::{self, registry_url};
use cargo_test_support::{cargo_process, t};
use toml;

const TOKEN: &str = "test-token";
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::io::prelude::*;

use cargo_test_support::paths::{self, CargoPathExt};
use cargo_test_support::registry::Package;
use cargo_test_support::{sleep_ms, t};
use cargo_test_support::{basic_lib_manifest, basic_manifest, main_file, project};
use cargo_test_support::{sleep_ms, t};

#[cargo_test]
// I have no idea why this is failing spuriously on Windows;
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ use std::fs::{self, File};
use std::io::prelude::*;
use std::path::Path;

use cargo::util::paths::remove_dir_all;
use cargo_test_support::cargo_process;
use cargo_test_support::git;
use cargo_test_support::paths::{self, CargoPathExt};
use cargo_test_support::registry::{self, registry_path, registry_url, Dependency, Package};
use cargo_test_support::{basic_manifest, project, t};
use cargo::util::paths::remove_dir_all;

#[cargo_test]
fn simple() {
Expand Down
4 changes: 3 additions & 1 deletion tests/testsuite/required_features.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use cargo_test_support::install::{assert_has_installed_exe, assert_has_not_installed_exe, cargo_home};
use cargo_test_support::install::{
assert_has_installed_exe, assert_has_not_installed_exe, cargo_home,
};
use cargo_test_support::is_nightly;
use cargo_test_support::project;

Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/run.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use cargo_test_support::{basic_bin_manifest, basic_lib_manifest, project, Project};
use cargo::util::paths::dylib_path_envvar;
use cargo_test_support::{basic_bin_manifest, basic_lib_manifest, project, Project};

#[cargo_test]
fn simple() {
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/rustdoc.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cargo_test_support::{basic_manifest, project, is_nightly};
use cargo_test_support::{basic_manifest, is_nightly, project};

#[cargo_test]
fn rustdoc_simple() {
Expand Down
4 changes: 3 additions & 1 deletion tests/testsuite/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ use cargo;

use cargo_test_support::paths::CargoPathExt;
use cargo_test_support::registry::Package;
use cargo_test_support::{basic_bin_manifest, basic_lib_manifest, basic_manifest, cargo_exe, project};
use cargo_test_support::{
basic_bin_manifest, basic_lib_manifest, basic_manifest, cargo_exe, project,
};
use cargo_test_support::{rustc_host, sleep_ms};

#[cargo_test]
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/version.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use cargo_test_support::project;
use cargo;
use cargo_test_support::project;

#[cargo_test]
fn simple() {
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::fs::{self, File};
use std::io::{Read, Write};

use cargo_test_support::registry::Package;
use cargo_test_support::{sleep_ms, t};
use cargo_test_support::{basic_lib_manifest, basic_manifest, git, project};
use cargo_test_support::{sleep_ms, t};

#[cargo_test]
fn simple_explicit() {
Expand Down

0 comments on commit ebd1052

Please sign in to comment.