File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
lib/dsc-lib/src/functions Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ impl Function for CidrHost {
1818 FunctionMetadata {
1919 name : "cidrHost" . to_string ( ) ,
2020 description : t ! ( "functions.cidrHost.description" ) . to_string ( ) ,
21- category : vec ! [ FunctionCategory :: Cidr ] ,
21+ category : vec ! [ FunctionCategory :: CIDR ] ,
2222 min_args : 2 ,
2323 max_args : 2 ,
2424 accepted_arg_ordered_types : vec ! [
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ impl Function for CidrSubnet {
1919 FunctionMetadata {
2020 name : "cidrSubnet" . to_string ( ) ,
2121 description : t ! ( "functions.cidrSubnet.description" ) . to_string ( ) ,
22- category : vec ! [ FunctionCategory :: Cidr ] ,
22+ category : vec ! [ FunctionCategory :: CIDR ] ,
2323 min_args : 3 ,
2424 max_args : 3 ,
2525 accepted_arg_ordered_types : vec ! [
Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ pub struct FunctionDefinition {
346346#[ serde( deny_unknown_fields) ]
347347pub enum FunctionCategory {
348348 Array ,
349- Cidr ,
349+ CIDR ,
350350 Comparison ,
351351 Date ,
352352 Deployment ,
@@ -363,7 +363,7 @@ impl Display for FunctionCategory {
363363 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
364364 match self {
365365 FunctionCategory :: Array => write ! ( f, "Array" ) ,
366- FunctionCategory :: Cidr => write ! ( f, "Cidr" ) ,
366+ FunctionCategory :: CIDR => write ! ( f, "Cidr" ) ,
367367 FunctionCategory :: Comparison => write ! ( f, "Comparison" ) ,
368368 FunctionCategory :: Date => write ! ( f, "Date" ) ,
369369 FunctionCategory :: Deployment => write ! ( f, "Deployment" ) ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ impl Function for ParseCidr {
1818 FunctionMetadata {
1919 name : "parseCidr" . to_string ( ) ,
2020 description : t ! ( "functions.parseCidr.description" ) . to_string ( ) ,
21- category : vec ! [ FunctionCategory :: Cidr ] ,
21+ category : vec ! [ FunctionCategory :: CIDR ] ,
2222 min_args : 1 ,
2323 max_args : 1 ,
2424 accepted_arg_ordered_types : vec ! [ vec![ FunctionArgKind :: String ] ] ,
You can’t perform that action at this time.
0 commit comments