Skip to content

Commit 01090b5

Browse files
remove to_string
1 parent 8cdfc1e commit 01090b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tool_provider/artifactory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl ToolProviderImpl for ArtifactoryProvider {
4040
.map_err(|error| ForemanError::ArtiAAError { error })?;
4141

4242
if let Some(credentials) = tokens.get_credentials(host) {
43-
builder = builder.header(AUTHORIZATION, format!{"Bearer {}", credentials.token.to_string()});
43+
builder = builder.header(AUTHORIZATION, format! {"Bearer {}", credentials.token});
4444
}
4545
log::debug!("Downloading artifactory releases for {}", repo);
4646
let response_body = builder

0 commit comments

Comments
 (0)