Skip to content

Commit

Permalink
Fix unnecessary borrow warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdno committed Oct 3, 2024
1 parent 839b35d commit ad0c357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rustup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl Context {
client.useragent("rust-lang/promote-release")?;

let content: Content = client.without_body().send_with_response()?;
let decoded_content = base64::decode(&content.content.replace('\n', ""))?;
let decoded_content = base64::decode(content.content.replace('\n', ""))?;
let cargo_toml = String::from_utf8(decoded_content)?;

let toml: CargoToml = toml::from_str(&cargo_toml)?;
Expand All @@ -149,7 +149,7 @@ impl Context {
.arg("cp")
.arg("--recursive")
.arg("--only-show-errors")
.arg(&self.s3_artifacts_url(&download_path))
.arg(self.s3_artifacts_url(&download_path))
.arg(format!("{}/", dl.display())))?;

Ok(dl)
Expand Down

0 comments on commit ad0c357

Please sign in to comment.