mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-17 01:23:39 -05:00
Update sort_update_vec function, fix lints and enable testing in CI
This commit is contained in:
@@ -75,7 +75,7 @@ impl Image {
|
||||
|
||||
/// Creates and populates the fields of an Image object based on a reference. If the tag is not recognized as a version string, exits the program with an error.
|
||||
pub async fn from_reference(reference: &str) -> Self {
|
||||
let (registry, repository, tag) = split(&reference);
|
||||
let (registry, repository, tag) = split(reference);
|
||||
let version_tag = Version::from_tag(&tag);
|
||||
match version_tag {
|
||||
Some(version) => Self {
|
||||
|
||||
Reference in New Issue
Block a user