m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-17 09:33:38 -05:00

refactor: remove dbg and use a proper panic when parsing a reference

This commit is contained in:
Sergio
2025-03-19 19:28:31 +02:00
parent b10af38df4
commit 5fbbba32f1

View File

@@ -43,7 +43,9 @@ pub fn split(reference: &str) -> (String, String, String) {
};
(repository, tag)
}
_ => {dbg!(splits); panic!()},
_ => {
panic!("Failed to parse reference! Splits: {:?}", splits)
}
};
(registry.to_string(), repository, tag.to_string())
}