Skip to content

Commit fb8df25

Browse files
committed
refactor(self-update): eliminate needless clone
1 parent 71ccd53 commit fb8df25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ impl Cfg {
226226
.transpose()?;
227227

228228
let dist_root_server = match process().var("RUSTUP_DIST_SERVER") {
229-
Ok(ref s) if !s.is_empty() => {
229+
Ok(s) if !s.is_empty() => {
230230
debug!("`RUSTUP_DIST_SERVER` has been set to `{s}`");
231-
s.clone()
231+
s
232232
}
233233
_ => {
234234
// For backward compatibility

0 commit comments

Comments
 (0)