@@ -290,7 +290,7 @@ enum ConditionType {
290290 Segment ,
291291 Datetime ,
292292 Number ,
293- SemVer ,
293+ Semver ,
294294 #[ serde( other) ]
295295 Unknown ,
296296}
@@ -310,7 +310,7 @@ impl Condition {
310310 ConditionType :: String => self . match_string ( user, & self . predicate ) ,
311311 ConditionType :: Segment => self . match_segment ( user, & self . predicate , segment_repo) ,
312312 ConditionType :: Number => self . match_ordering :: < f64 > ( user, & self . predicate ) ,
313- ConditionType :: SemVer => self . match_ordering :: < Version > ( user, & self . predicate ) ,
313+ ConditionType :: Semver => self . match_ordering :: < Version > ( user, & self . predicate ) ,
314314 ConditionType :: Datetime => self . match_timestamp ( user, & self . predicate ) ,
315315 _ => false ,
316316 }
@@ -1088,7 +1088,7 @@ mod condition_tests {
10881088 #[ test]
10891089 fn test_semver_condition ( ) {
10901090 let mut condition = Condition {
1091- r#type : ConditionType :: SemVer ,
1091+ r#type : ConditionType :: Semver ,
10921092 subject : "version" . to_owned ( ) ,
10931093 objects : vec ! [ "1.0.0" . to_owned( ) , "2.0.0" . to_owned( ) ] ,
10941094 predicate : "=" . to_owned ( ) ,
0 commit comments