Skip to content

Commit

Permalink
chore: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Jul 9, 2024
1 parent d5bd29e commit f68c397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yerpc/src/typescript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl Method {

pub fn to_string(&self, root_namespace: Option<&str>) -> String {
let (args, call) = if !self.is_positional {
if let Some((name, ty)) = self.args.get(0) {
if let Some((name, ty)) = self.args.first() {
(
format!("{}: {}", name, type_to_expr(ty, root_namespace)),
name.to_string(),
Expand Down

0 comments on commit f68c397

Please sign in to comment.