Skip to content

Commit b25291d

Browse files
committed
dist: take ownership of Manifestation
1 parent e888668 commit b25291d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dist/manifestation.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl Manifestation {
103103
/// It is *not* safe to run two updates concurrently. See
104104
/// https://github.com/rust-lang/rustup/issues/988 for the details.
105105
pub async fn update(
106-
&self,
106+
self,
107107
new_manifest: Manifest,
108108
changes: Changes,
109109
force_update: bool,
@@ -118,7 +118,7 @@ impl Manifestation {
118118

119119
// Create the lists of components needed for installation
120120
let config = self.read_config()?;
121-
let mut update = Update::new(self, &new_manifest, &changes, &config)?;
121+
let mut update = Update::new(&self, &new_manifest, &changes, &config)?;
122122

123123
if update.nothing_changes() {
124124
return Ok(UpdateStatus::Unchanged);
@@ -230,7 +230,7 @@ impl Manifestation {
230230

231231
if let Some((bin, downloaded)) = installable {
232232
cleanup_downloads.push(&bin.binary.hash);
233-
tx = bin.install(downloaded, tx, self)?;
233+
tx = bin.install(downloaded, tx, &self)?;
234234
}
235235
}
236236

0 commit comments

Comments
 (0)