From f68c397934c0bbc94054e461aa3ed867299633b0 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 9 Jul 2024 16:07:43 +0000 Subject: [PATCH] chore: fix clippy warning --- yerpc/src/typescript.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yerpc/src/typescript.rs b/yerpc/src/typescript.rs index fce79d4..ee91194 100644 --- a/yerpc/src/typescript.rs +++ b/yerpc/src/typescript.rs @@ -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(),