From 96b581bdd2bedb31aa51c0a992686f27ed1a1f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=82=B3=E6=9D=83?= <695601626@qq.com> Date: Tue, 2 Jan 2024 06:22:48 +0800 Subject: chore: update to Rust 1.75 (#21731) --- cli/lsp/code_lens.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/lsp/code_lens.rs') diff --git a/cli/lsp/code_lens.rs b/cli/lsp/code_lens.rs index 5330be5da..f2ac24840 100644 --- a/cli/lsp/code_lens.rs +++ b/cli/lsp/code_lens.rs @@ -98,7 +98,7 @@ impl DenoTestCollector { } fn check_call_expr(&mut self, node: &ast::CallExpr, range: &SourceRange) { - if let Some(expr) = node.args.get(0).map(|es| es.expr.as_ref()) { + if let Some(expr) = node.args.first().map(|es| es.expr.as_ref()) { match expr { ast::Expr::Object(obj_lit) => { for prop in &obj_lit.props { -- cgit v1.2.3