m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-19 02:13:41 -05:00

chore: format code

This commit is contained in:
Sergio
2025-03-19 19:24:19 +02:00
parent 77a07013a9
commit b10af38df4
2 changed files with 15 additions and 4 deletions

View File

@@ -16,7 +16,12 @@ pub fn split(reference: &str) -> (String, String, String) {
}
}
};
let splits = repository_and_tag.split('@').next().unwrap().split(':').collect::<Vec<&str>>();
let splits = repository_and_tag
.split('@')
.next()
.unwrap()
.split(':')
.collect::<Vec<&str>>();
let (repository, tag) = match splits.len() {
1 | 2 => {
let repository_components = splits[0].split('/').collect::<Vec<&str>>();