Skip to content

Commit 0a9a46e

Browse files
committed
Remove unnecessary clone
1 parent a0d94ff commit 0a9a46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ pub fn configure_http_handle(config: &Config, handle: &mut Easy) -> CargoResult<
419419
if let Some(proxy) = http_proxy(config)? {
420420
handle.proxy(&proxy)?;
421421
}
422-
if let Some(cainfo) = http.cainfo.clone() {
422+
if let Some(cainfo) = &http.cainfo {
423423
let cainfo = cainfo.resolve_path(config);
424424
handle.cainfo(&cainfo)?;
425425
}

0 commit comments

Comments
 (0)