model/lockfile. one less clone!

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I8dbfc511fc07273a69953b03404efc656a6a6964
This commit is contained in:
raf 2026-02-27 22:26:14 +03:00
commit 0fecd1486b
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -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,