Skip to content

Commit a027838

Browse files
committed
fix clippy issue
1 parent 00d5041 commit a027838

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,13 @@ impl <T: ClientT> <%= className %><T> {
258258
* <%= method.description %>
259259
*/
260260
pub async fn <%= normalizeMethodNameRust(method.name) %>(&self, <%= methodTypings.getParamsTyping("rust", method) %>) -> Result<<%= methodTypings.getTypingNames("rust", method).result %>, Error> {
261-
let method = "<%= method.name %>";
262261
<% const paramNames = extractParameterNames(methodTypings.getParamsTyping("rust", method)); %>
263262
<% if (paramNames.length > 0) { %>
264263
let mut params: serde_json::Map<String, serde_json::Value> = serde_json::Map::new();
265264
<% paramNames.forEach((paramName, index) => { %>params.insert("<%= paramName %>".to_string(), serde_json::to_value(<%= paramName %>).unwrap());<% }); %>
266265
<% } else { %>let params: serde_json::Map<String, serde_json::Value> = serde_json::Map::new();<% } %>
267266
268-
self.client.request(&method, params).await
267+
self.client.request("<%= method.name %>", params).await
269268
}
270269
<% }); %>
271270
}

0 commit comments

Comments
 (0)