Skip to content

Commit

Permalink
Run code through rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
t11s committed Nov 15, 2019
1 parent 290db51 commit 648b39e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/ops/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ pub fn configure_http_handle(config: &Config, handle: &mut Easy) -> CargoResult<
if let Some(check) = http.check_revoke {
handle.ssl_options(SslOpt::new().no_revoke(!check))?;
}

if let Some(user_agent) = &http.user_agent {
handle.useragent(user_agent)?;
} else {
Expand Down Expand Up @@ -599,7 +599,7 @@ pub fn registry_login(
.read_line(&mut line)
.chain_err(|| "failed to read stdin")
.map_err(failure::Error::from)?;
// Automatically remove `cargo login` from an inputted token to allow direct pastes from `registry.host()`/me.
// Automatically remove `cargo login` from an inputted token to allow direct pastes from `registry.host()`/me.
line.replace("cargo login", "").trim().to_string()
}
};
Expand Down

0 comments on commit 648b39e

Please sign in to comment.