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:
@@ -43,7 +43,9 @@ pub fn split(reference: &str) -> (String, String, String) {
|
|||||||
};
|
};
|
||||||
(repository, tag)
|
(repository, tag)
|
||||||
}
|
}
|
||||||
_ => {dbg!(splits); panic!()},
|
_ => {
|
||||||
|
panic!("Failed to parse reference! Splits: {:?}", splits)
|
||||||
|
}
|
||||||
};
|
};
|
||||||
(registry.to_string(), repository, tag.to_string())
|
(registry.to_string(), repository, tag.to_string())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user