Просмотр исходного кода

Mark the module generated by the CMZProtocol macro family as #![allow(non_snake_case)]

We want credentials and Points to be uppercase, and Scalars to be
lowercase.
Ian Goldberg 5 месяцев назад
Родитель
Сommit
08c88bdb07
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      cmzcred_derive/src/lib.rs

+ 1 - 0
cmzcred_derive/src/lib.rs

@@ -1186,6 +1186,7 @@ fn protocol_macro(
 
     // Output the generated module for this protocol
     quote! {
+        #[allow(non_snake_case)]
         pub mod #proto_name {
             use super::*;