Skip to content

Commit 4d6e86c

Browse files
committed
Fix clippy warnings in pox-locking
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent afa8a63 commit 4d6e86c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pox-locking/src/events.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fn create_event_info_aggregation_code(function_name: &str) -> String {
8484
)
8585
{{
8686
;; Function name
87-
name: "{func_name}",
87+
name: "{function_name}",
8888
;; who called this
8989
;; NOTE: these fields are required by downstream clients.
9090
;; Even though tx-sender is *not* a stacker, the field is
@@ -97,8 +97,7 @@ fn create_event_info_aggregation_code(function_name: &str) -> String {
9797
9898
}}
9999
)
100-
"#,
101-
func_name = function_name
100+
"#
102101
)
103102
}
104103

pox-locking/src/events_24.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fn create_event_info_aggregation_code(function_name: &str) -> String {
7878
)
7979
{{
8080
;; Function name
81-
name: "{func_name}",
81+
name: "{function_name}",
8282
;; who called this
8383
;; NOTE: these fields are required by downstream clients.
8484
;; Even though tx-sender is *not* a stacker, the field is
@@ -91,8 +91,7 @@ fn create_event_info_aggregation_code(function_name: &str) -> String {
9191
9292
}}
9393
)
94-
"#,
95-
func_name = function_name
94+
"#
9695
)
9796
}
9897

0 commit comments

Comments
 (0)