Skip to content

Commit 64c69df

Browse files
committed
fix some bugs
1 parent 56b8ae7 commit 64c69df

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ pub trait ArgMatchesExt {
614614
}
615615

616616
fn index(&self) -> CargoResult<Option<String>> {
617-
let index = self._value_of("index").map(|s| s.to_string());
617+
let index = self._value_of("index").map(|s| s.to_string());
618618
Ok(index)
619619
}
620620

tests/testsuite/login.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
//! Tests for the `cargo login` command.
22
3-
use cargo::core::Shell;
4-
use cargo::util::config::Config;
53
use cargo_test_support::install::cargo_home;
6-
use cargo_test_support::registry::{self, registry_url};
4+
use cargo_test_support::registry;
75
use cargo_test_support::{cargo_process, paths, t};
86
use std::fs::{self, OpenOptions};
97
use std::io::prelude::*;
@@ -18,11 +16,6 @@ fn setup_new_credentials() {
1816
setup_new_credentials_at(config);
1917
}
2018

21-
fn setup_new_credentials_toml() {
22-
let config = cargo_home().join("credentials.toml");
23-
setup_new_credentials_at(config);
24-
}
25-
2619
fn setup_new_credentials_at(config: PathBuf) {
2720
t!(fs::create_dir_all(config.parent().unwrap()));
2821
t!(fs::write(

tests/testsuite/publish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use cargo_test_support::git::{self, repo};
44
use cargo_test_support::paths;
5-
use cargo_test_support::registry::{self, registry_path, registry_url, Package};
5+
use cargo_test_support::registry::{self, registry_url, Package};
66
use cargo_test_support::{basic_manifest, no_such_file_err_msg, project, publish};
77
use std::fs;
88

0 commit comments

Comments
 (0)