model/lockfile. one less clone!
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I8dbfc511fc07273a69953b03404efc656a6a6964
This commit is contained in:
parent
14264931dd
commit
4eb2d8d092
1 changed files with 4 additions and 2 deletions
|
|
@ -20,13 +20,15 @@ mod tests {
|
||||||
let mut id_map = HashMap::new();
|
let mut id_map = HashMap::new();
|
||||||
id_map.insert("modrinth".to_string(), pakku_id.to_string());
|
id_map.insert("modrinth".to_string(), pakku_id.to_string());
|
||||||
|
|
||||||
|
let slug_map = name_map.clone();
|
||||||
|
|
||||||
Project {
|
Project {
|
||||||
pakku_id: Some(pakku_id.to_string()),
|
pakku_id: Some(pakku_id.to_string()),
|
||||||
pakku_links: HashSet::new(),
|
pakku_links: HashSet::new(),
|
||||||
r#type: ProjectType::Mod,
|
r#type: ProjectType::Mod,
|
||||||
side: ProjectSide::Both,
|
side: ProjectSide::Both,
|
||||||
slug: name_map.clone(),
|
slug: slug_map,
|
||||||
name: name_map.clone(),
|
name: name_map,
|
||||||
id: id_map,
|
id: id_map,
|
||||||
update_strategy: UpdateStrategy::Latest,
|
update_strategy: UpdateStrategy::Latest,
|
||||||
redistributable: true,
|
redistributable: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue