3636
3737#[ allow( unused) ]
3838macro_rules! format_error {
39- ( $message: expr , $error: expr ) => {
39+ ( $message: expr_2021 , $error: expr_2021 ) => {
4040 if crate :: utils:: GlobalConfig :: log_error_details( ) {
4141 log:: error!( "{}; Error: {}" , $message, $error)
4242 } else {
@@ -47,7 +47,7 @@ macro_rules! format_error {
4747
4848#[ allow( unused) ]
4949macro_rules! deprecation_check {
50- ( $operation: ident, $warning: expr , $return_flag: expr ) => {
50+ ( $operation: ident, $warning: expr_2021 , $return_flag: expr_2021 ) => {
5151 if let Err ( ResponseStatus :: DeprecatedPrimitive ) = $operation. check_deprecated( ) {
5252 log:: warn!( "{}" , $warning) ;
5353 if $return_flag && !crate :: utils:: GlobalConfig :: allow_deprecated( ) {
@@ -59,14 +59,14 @@ macro_rules! deprecation_check {
5959
6060#[ allow( unused) ]
6161macro_rules! warn_on_deprecated {
62- ( $operation: ident, $warning: expr ) => {
62+ ( $operation: ident, $warning: expr_2021 ) => {
6363 deprecation_check!( $operation, $warning, false ) ;
6464 } ;
6565}
6666
6767#[ allow( unused) ]
6868macro_rules! return_on_deprecated {
69- ( $operation: ident, $warning: expr ) => {
69+ ( $operation: ident, $warning: expr_2021 ) => {
7070 deprecation_check!( $operation, $warning, true ) ;
7171 } ;
7272}
0 commit comments