File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,14 @@ macro_rules! asn1 {
22
22
}
23
23
24
24
impl $name {
25
- fn asn1_description( ) -> Vec <( & ' static str , & ' static str ) > {
25
+ fn asn1_description( ) -> Vec <( & ' static str , & ' static str , & ' static str ) > {
26
26
let mut description = vec![ ] ;
27
27
$(
28
- description. push( ( stringify!( $field_name) , stringify!( $field_type) ) ) ;
28
+ description. push( (
29
+ stringify!( $field_name) ,
30
+ stringify!( $field_type) ,
31
+ stringify!( $field_rust_type)
32
+ ) ) ;
29
33
) *
30
34
return description;
31
35
}
@@ -57,7 +61,7 @@ mod tests {
57
61
}
58
62
) ;
59
63
60
- assert_eq ! ( Single :: asn1_description( ) , vec![ ( "x" , "INTEGER" ) ] ) ;
64
+ assert_eq ! ( Single :: asn1_description( ) , vec![ ( "x" , "INTEGER" , "i64" ) ] ) ;
61
65
}
62
66
63
67
#[ test]
@@ -70,8 +74,8 @@ mod tests {
70
74
) ;
71
75
72
76
assert_eq ! ( Double :: asn1_description( ) , vec![
73
- ( "x" , "INTEGER" ) ,
74
- ( "y" , "BOOLEAN" ) ,
77
+ ( "x" , "INTEGER" , "i64" ) ,
78
+ ( "y" , "BOOLEAN" , "bool" ) ,
75
79
] )
76
80
}
77
81
You can’t perform that action at this time.
0 commit comments