Skip to content

Commit ad0c357

Browse files
committed
Fix unnecessary borrow warnings
1 parent 839b35d commit ad0c357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rustup.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl Context {
126126
client.useragent("rust-lang/promote-release")?;
127127

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

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

155155
Ok(dl)

0 commit comments

Comments
 (0)