Skip to content

Commit f452990

Browse files
committed
Remove wildcard import
1 parent 25e438e commit f452990

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/cli/proxy_mode.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use anyhow::Result;
55
use crate::{
66
cli::{common::set_globals, job, self_update},
77
command::run_command_for_dir,
8+
process::Process,
89
toolchain::names::{LocalToolchainName, ResolvableLocalToolchainName},
910
utils::utils::{self, ExitCode},
1011
Cfg,
@@ -17,7 +18,7 @@ pub fn main(arg0: &str) -> Result<ExitCode> {
1718
let ExitCode(c) = {
1819
let _setup = job::setup();
1920

20-
let process = crate::Process::get();
21+
let process = Process::get();
2122
let mut args = process.args_os().skip(1);
2223

2324
// Check for a + toolchain specifier
@@ -30,7 +31,7 @@ pub fn main(arg0: &str) -> Result<ExitCode> {
3031
.transpose()?;
3132

3233
// Build command args now while we know whether or not to skip arg 1.
33-
let cmd_args: Vec<_> = crate::Process::get()
34+
let cmd_args: Vec<_> = Process::get()
3435
.args_os()
3536
.skip(1 + toolchain.is_some() as usize)
3637
.collect();

src/cli/rustup_mode.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ use crate::{
2626
},
2727
errors::RustupError,
2828
install::UpdateStatus,
29-
process::Process,
30-
terminalsource::{self, ColorableTerminal},
29+
process::{
30+
terminalsource::{self, ColorableTerminal},
31+
Process,
32+
},
3133
toolchain::{
3234
distributable::DistributableToolchain,
3335
names::{
@@ -1683,7 +1685,7 @@ fn set_profile(cfg: &mut Cfg, m: &ArgMatches) -> Result<utils::ExitCode> {
16831685

16841686
fn set_auto_self_update(cfg: &mut Cfg, m: &ArgMatches) -> Result<utils::ExitCode> {
16851687
if self_update::NEVER_SELF_UPDATE {
1686-
let process = crate::Process::get();
1688+
let process = Process::get();
16871689
let mut args = process.args_os();
16881690
let arg0 = args.next().map(PathBuf::from);
16891691
let arg0 = arg0

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
pub(crate) use crate::config::*;
1414
pub use crate::errors::*;
1515
pub(crate) use crate::notifications::*;
16-
use crate::process::*;
1716
pub(crate) use crate::utils::toml_utils;
1817
use anyhow::{anyhow, Result};
1918
use itertools::{chain, Itertools};

0 commit comments

Comments
 (0)