Fix ownership issues with previous commit

This commit is contained in:
Nathan Fisher 2023-03-25 18:03:51 -04:00
parent 6c62f15a41
commit 00e48a9f9a
2 changed files with 6 additions and 6 deletions

View File

@ -40,20 +40,20 @@ impl Database {
// pulled in update, so swap it out
let update = Update {
name: name.clone(),
version: remote_package.version,
version: remote_package.version.clone(),
url: repo.base_url.clone(),
};
updates.insert(name, update);
updates.insert(name.clone(), update);
}
} else {
// First time we've seen this update, so insert it
// into our hashmap
let update = Update {
name: name.clone(),
version: remote_package.version,
url: repo.base_url,
version: remote_package.version.clone(),
url: repo.base_url.clone(),
};
updates.insert(name, update);
updates.insert(name.clone(), update);
}
}
}

View File

@ -8,7 +8,7 @@ mod repository;
mod version;
pub use {
db: Database,
db::Database,
hooks::Hooks,
item::Item,
package::{create_package, Dependency, Package, Specs},