Skip to content

Commit ebd1052

Browse files
committed
Run rustfmt
1 parent 40be3bb commit ebd1052

19 files changed

+31
-25
lines changed

tests/testsuite/alt_registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
use cargo::util::IntoUrl;
12
use cargo_test_support::publish::validate_alt_upload;
23
use cargo_test_support::registry::{self, Package};
34
use cargo_test_support::{basic_manifest, git, paths, project};
4-
use cargo::util::IntoUrl;
55
use std::fs::{self, File};
66
use std::io::Write;
77

tests/testsuite/build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
use std::env;
2-
use std::fs::{self, File};
3-
use std::io::prelude::*;
1+
use cargo::util::paths::dylib_path_envvar;
42
use cargo_test_support::paths::{root, CargoPathExt};
53
use cargo_test_support::registry::Package;
64
use cargo_test_support::{
75
basic_bin_manifest, basic_lib_manifest, basic_manifest, main_file, project, rustc_host,
8-
sleep_ms, symlink_supported, Execs, ProjectBuilder, t,
6+
sleep_ms, symlink_supported, t, Execs, ProjectBuilder,
97
};
10-
use cargo::util::paths::dylib_path_envvar;
8+
use std::env;
9+
use std::fs::{self, File};
10+
use std::io::prelude::*;
1111

1212
#[cargo_test]
1313
fn cargo_compile_simple() {

tests/testsuite/build_script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use std::io;
44
use std::io::prelude::*;
55
use std::thread;
66

7+
use cargo::util::paths::remove_dir_all;
78
use cargo_test_support::paths::CargoPathExt;
89
use cargo_test_support::registry::Package;
910
use cargo_test_support::{basic_manifest, cross_compile, project};
1011
use cargo_test_support::{rustc_host, sleep_ms, slow_cpu_multiplier};
11-
use cargo::util::paths::remove_dir_all;
1212

1313
#[cargo_test]
1414
fn custom_build_script_failed() {

tests/testsuite/cargo_command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use std::io::prelude::*;
44
use std::path::{Path, PathBuf};
55
use std::str;
66

7+
use cargo;
78
use cargo_test_support::cargo_process;
89
use cargo_test_support::paths::{self, CargoPathExt};
910
use cargo_test_support::registry::Package;
1011
use cargo_test_support::{basic_bin_manifest, basic_manifest, cargo_exe, project, Project};
11-
use cargo;
1212

1313
#[cfg_attr(windows, allow(dead_code))]
1414
enum FakeKind<'a> {

tests/testsuite/cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use std::fmt;
22
use std::str::FromStr;
33

4+
use cargo::util::{Cfg, CfgExpr};
45
use cargo_test_support::registry::Package;
56
use cargo_test_support::rustc_host;
67
use cargo_test_support::{basic_manifest, project};
7-
use cargo::util::{Cfg, CfgExpr};
88

99
macro_rules! c {
1010
($a:ident) => {

tests/testsuite/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ use std::io;
55
use std::os;
66
use std::path::Path;
77

8-
use cargo_test_support::{paths, project, t};
98
use cargo::core::{enable_nightly_features, Shell};
109
use cargo::util::config::{self, Config};
1110
use cargo::util::toml::{self, VecStringOrBool as VSOB};
11+
use cargo_test_support::{paths, project, t};
1212
use serde::Deserialize;
1313

1414
fn lines_match(a: &str, b: &str) -> bool {

tests/testsuite/corrupt_git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::fs;
22
use std::path::{Path, PathBuf};
33

4+
use cargo::util::paths as cargopaths;
45
use cargo_test_support::paths;
56
use cargo_test_support::{basic_manifest, git, project};
6-
use cargo::util::paths as cargopaths;
77

88
#[cargo_test]
99
fn deleting_database_files() {

tests/testsuite/directory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use cargo_test_support::cargo_process;
99
use cargo_test_support::git;
1010
use cargo_test_support::paths;
1111
use cargo_test_support::registry::{cksum, Package};
12-
use cargo_test_support::{basic_manifest, project, ProjectBuilder, t};
12+
use cargo_test_support::{basic_manifest, project, t, ProjectBuilder};
1313

1414
fn setup() {
1515
let root = paths::root();

tests/testsuite/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use std::sync::Arc;
99
use std::thread;
1010

1111
use cargo_test_support::paths::{self, CargoPathExt};
12-
use cargo_test_support::{sleep_ms, Project, t};
1312
use cargo_test_support::{basic_lib_manifest, basic_manifest, git, main_file, path2url, project};
13+
use cargo_test_support::{sleep_ms, t, Project};
1414

1515
fn disable_git_cli() -> bool {
1616
// mingw git on Windows does not support Windows-style file URIs.

tests/testsuite/install.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ use git2;
55

66
use cargo_test_support::cross_compile;
77
use cargo_test_support::git;
8-
use cargo_test_support::install::{assert_has_installed_exe, assert_has_not_installed_exe, cargo_home};
8+
use cargo_test_support::install::{
9+
assert_has_installed_exe, assert_has_not_installed_exe, cargo_home,
10+
};
911
use cargo_test_support::paths;
1012
use cargo_test_support::registry::Package;
1113
use cargo_test_support::{basic_manifest, cargo_process, project};

tests/testsuite/login.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ use std::fs::{self, File};
22
use std::io::prelude::*;
33
use std::path::PathBuf;
44

5-
use cargo_test_support::{cargo_process, t};
6-
use cargo_test_support::install::cargo_home;
7-
use cargo_test_support::registry::{self, registry_url};
85
use cargo::core::Shell;
96
use cargo::util::config::Config;
7+
use cargo_test_support::install::cargo_home;
8+
use cargo_test_support::registry::{self, registry_url};
9+
use cargo_test_support::{cargo_process, t};
1010
use toml;
1111

1212
const TOKEN: &str = "test-token";

tests/testsuite/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use std::io::prelude::*;
33

44
use cargo_test_support::paths::{self, CargoPathExt};
55
use cargo_test_support::registry::Package;
6-
use cargo_test_support::{sleep_ms, t};
76
use cargo_test_support::{basic_lib_manifest, basic_manifest, main_file, project};
7+
use cargo_test_support::{sleep_ms, t};
88

99
#[cargo_test]
1010
// I have no idea why this is failing spuriously on Windows;

tests/testsuite/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use std::fs::{self, File};
22
use std::io::prelude::*;
33
use std::path::Path;
44

5+
use cargo::util::paths::remove_dir_all;
56
use cargo_test_support::cargo_process;
67
use cargo_test_support::git;
78
use cargo_test_support::paths::{self, CargoPathExt};
89
use cargo_test_support::registry::{self, registry_path, registry_url, Dependency, Package};
910
use cargo_test_support::{basic_manifest, project, t};
10-
use cargo::util::paths::remove_dir_all;
1111

1212
#[cargo_test]
1313
fn simple() {

tests/testsuite/required_features.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use cargo_test_support::install::{assert_has_installed_exe, assert_has_not_installed_exe, cargo_home};
1+
use cargo_test_support::install::{
2+
assert_has_installed_exe, assert_has_not_installed_exe, cargo_home,
3+
};
24
use cargo_test_support::is_nightly;
35
use cargo_test_support::project;
46

tests/testsuite/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use cargo_test_support::{basic_bin_manifest, basic_lib_manifest, project, Project};
21
use cargo::util::paths::dylib_path_envvar;
2+
use cargo_test_support::{basic_bin_manifest, basic_lib_manifest, project, Project};
33

44
#[cargo_test]
55
fn simple() {

tests/testsuite/rustdoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use cargo_test_support::{basic_manifest, project, is_nightly};
1+
use cargo_test_support::{basic_manifest, is_nightly, project};
22

33
#[cargo_test]
44
fn rustdoc_simple() {

tests/testsuite/test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ use cargo;
55

66
use cargo_test_support::paths::CargoPathExt;
77
use cargo_test_support::registry::Package;
8-
use cargo_test_support::{basic_bin_manifest, basic_lib_manifest, basic_manifest, cargo_exe, project};
8+
use cargo_test_support::{
9+
basic_bin_manifest, basic_lib_manifest, basic_manifest, cargo_exe, project,
10+
};
911
use cargo_test_support::{rustc_host, sleep_ms};
1012

1113
#[cargo_test]

tests/testsuite/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use cargo_test_support::project;
21
use cargo;
2+
use cargo_test_support::project;
33

44
#[cargo_test]
55
fn simple() {

tests/testsuite/workspaces.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use std::fs::{self, File};
33
use std::io::{Read, Write};
44

55
use cargo_test_support::registry::Package;
6-
use cargo_test_support::{sleep_ms, t};
76
use cargo_test_support::{basic_lib_manifest, basic_manifest, git, project};
7+
use cargo_test_support::{sleep_ms, t};
88

99
#[cargo_test]
1010
fn simple_explicit() {

0 commit comments

Comments
 (0)