@@ -18,8 +18,8 @@ macro_rules! hex_fmt_impl(
1818 ( $reverse: expr, $ty: ident) => (
1919 $crate:: hex_fmt_impl!( $reverse, $ty, ) ;
2020 ) ;
21- ( $reverse: expr, $ty: ident, $( $gen : ident: $gent: ident) ,* ) => (
22- impl <$( $gen : $gent) ,* > $crate:: _export:: _core:: fmt:: LowerHex for $ty<$( $gen ) ,* > {
21+ ( $reverse: expr, $ty: ident, $( $generator : ident: $gent: ident) ,* ) => (
22+ impl <$( $generator : $gent) ,* > $crate:: _export:: _core:: fmt:: LowerHex for $ty<$( $generator ) ,* > {
2323 #[ inline]
2424 fn fmt( & self , f: & mut $crate:: _export:: _core:: fmt:: Formatter ) -> $crate:: _export:: _core:: fmt:: Result {
2525 if $reverse {
@@ -30,7 +30,7 @@ macro_rules! hex_fmt_impl(
3030 }
3131 }
3232
33- impl <$( $gen : $gent) ,* > $crate:: _export:: _core:: fmt:: UpperHex for $ty<$( $gen ) ,* > {
33+ impl <$( $generator : $gent) ,* > $crate:: _export:: _core:: fmt:: UpperHex for $ty<$( $generator ) ,* > {
3434 #[ inline]
3535 fn fmt( & self , f: & mut $crate:: _export:: _core:: fmt:: Formatter ) -> $crate:: _export:: _core:: fmt:: Result {
3636 if $reverse {
@@ -41,14 +41,14 @@ macro_rules! hex_fmt_impl(
4141 }
4242 }
4343
44- impl <$( $gen : $gent) ,* > $crate:: _export:: _core:: fmt:: Display for $ty<$( $gen ) ,* > {
44+ impl <$( $generator : $gent) ,* > $crate:: _export:: _core:: fmt:: Display for $ty<$( $generator ) ,* > {
4545 #[ inline]
4646 fn fmt( & self , f: & mut $crate:: _export:: _core:: fmt:: Formatter ) -> $crate:: _export:: _core:: fmt:: Result {
4747 $crate:: _export:: _core:: fmt:: LowerHex :: fmt( & self , f)
4848 }
4949 }
5050
51- impl <$( $gen : $gent) ,* > $crate:: _export:: _core:: fmt:: Debug for $ty<$( $gen ) ,* > {
51+ impl <$( $generator : $gent) ,* > $crate:: _export:: _core:: fmt:: Debug for $ty<$( $generator ) ,* > {
5252 #[ inline]
5353 fn fmt( & self , f: & mut $crate:: _export:: _core:: fmt:: Formatter ) -> $crate:: _export:: _core:: fmt:: Result {
5454 write!( f, "{:#}" , self )
@@ -63,14 +63,14 @@ macro_rules! borrow_slice_impl(
6363 ( $ty: ident) => (
6464 $crate:: borrow_slice_impl!( $ty, ) ;
6565 ) ;
66- ( $ty: ident, $( $gen : ident: $gent: ident) ,* ) => (
67- impl <$( $gen : $gent) ,* > $crate:: _export:: _core:: borrow:: Borrow <[ u8 ] > for $ty<$( $gen ) ,* > {
66+ ( $ty: ident, $( $generator : ident: $gent: ident) ,* ) => (
67+ impl <$( $generator : $gent) ,* > $crate:: _export:: _core:: borrow:: Borrow <[ u8 ] > for $ty<$( $generator ) ,* > {
6868 fn borrow( & self ) -> & [ u8 ] {
6969 & self [ ..]
7070 }
7171 }
7272
73- impl <$( $gen : $gent) ,* > $crate:: _export:: _core:: convert:: AsRef <[ u8 ] > for $ty<$( $gen ) ,* > {
73+ impl <$( $generator : $gent) ,* > $crate:: _export:: _core:: convert:: AsRef <[ u8 ] > for $ty<$( $generator ) ,* > {
7474 fn as_ref( & self ) -> & [ u8 ] {
7575 & self [ ..]
7676 }
@@ -588,8 +588,8 @@ pub mod json_hex_string {
588588 use schemars:: schema:: { Schema , SchemaObject } ;
589589 macro_rules! define_custom_hex {
590590 ( $name: ident, $len: expr) => {
591- pub fn $name( gen : & mut SchemaGenerator ) -> Schema {
592- let mut schema: SchemaObject = <String >:: json_schema( gen ) . into( ) ;
591+ pub fn $name( generator : & mut SchemaGenerator ) -> Schema {
592+ let mut schema: SchemaObject = <String >:: json_schema( generator ) . into( ) ;
593593 schema. string = Some ( Box :: new( schemars:: schema:: StringValidation {
594594 max_length: Some ( $len * 2 ) ,
595595 min_length: Some ( $len * 2 ) ,
0 commit comments