Added skeleton for the default github comparer
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Martin Slot 2022-12-01 17:04:42 +01:00
parent 924df65deb
commit 89a57d196b
1 changed files with 16 additions and 1 deletions

View File

@ -89,7 +89,22 @@ JOIN VCSTYPES V ON O.vcs_type = V.vcs_type";
mod versioning {
trait VersionComparer {
fn compare(version: &str);
fn compare(v1: &str, v2: &str) -> Comp;
}
pub struct GithubDefaultVersionComparer;
impl VersionComparer for GithubDefaultVersionComparer {
fn compare(v1: &str, v2: &str) -> Comp {
todo!()
}
}
// todo: rename this
pub enum Comp {
Left,
Right,
Equal,
}
}