@@ -102,9 +102,10 @@ pub fn get_payload_type(payload: &TransactionPayload) -> String {
102102 payload. r#type ( ) . as_str_name ( ) . to_string ( )
103103}
104104
105- /// Part of the json comes escaped from the protobuf so we need to unescape in a safe way
106- /// This function converts the string into json recursively and lets the diesel ORM handles
107- /// the escaping.
105+ #[ allow( clippy:: too_long_first_doc_paragraph) ]
106+ /// Part of the json comes escaped from the protobuf so we need to unescape in a safe way.
107+ /// This function converts the string into json recursively
108+ /// and lets the diesel ORM handles the escaping.
108109pub fn get_clean_payload ( payload : & TransactionPayload , version : i64 ) -> Option < Value > {
109110 if payload. payload . as_ref ( ) . is_none ( ) {
110111 // PROCESSOR_UNKNOWN_TYPE_COUNT
@@ -167,8 +168,9 @@ pub fn get_clean_payload(payload: &TransactionPayload, version: i64) -> Option<V
167168 }
168169}
169170
170- /// Part of the json comes escaped from the protobuf so we need to unescape in a safe way
171- /// Note that DirectWriteSet is just events + writeset which is already represented separately
171+ #[ allow( clippy:: too_long_first_doc_paragraph) ]
172+ /// Part of the json comes escaped from the protobuf so we need to unescape in a safe way.
173+ /// /// Note that DirectWriteSet is just events + writeset which is already represented separately
172174pub fn get_clean_writeset ( writeset : & WriteSet , version : i64 ) -> Option < Value > {
173175 match writeset. write_set . as_ref ( ) . unwrap ( ) {
174176 WriteSetType :: ScriptWriteSet ( inner) => {
@@ -186,6 +188,7 @@ pub fn get_clean_writeset(writeset: &WriteSet, version: i64) -> Option<Value> {
186188 }
187189}
188190
191+ #[ allow( clippy:: too_long_first_doc_paragraph) ]
189192/// Part of the json comes escaped from the protobuf so we need to unescape in a safe way
190193fn get_clean_entry_function_payload (
191194 payload : & EntryFunctionPayload ,
@@ -207,7 +210,8 @@ fn get_clean_entry_function_payload(
207210 }
208211}
209212
210- /// Part of the json comes escaped from the protobuf so we need to unescape in a safe way
213+ /// Part of the json comes escaped from the protobuf
214+ /// so we need to unescape in a safe way
211215fn get_clean_script_payload ( payload : & ScriptPayload , version : i64 ) -> ScriptPayloadClean {
212216 ScriptPayloadClean {
213217 code : payload. code . clone ( ) ,
0 commit comments