diff options
author | 林炳权 <695601626@qq.com> | 2024-01-02 06:22:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-01 23:22:48 +0100 |
commit | 96b581bdd2bedb31aa51c0a992686f27ed1a1f10 (patch) | |
tree | 3e141ed70531ff37f93eb25d4ae135b97f14b7a1 /cli/lsp/analysis.rs | |
parent | 7e72f3af6152d4b62c2ea94d025dfa297a6b0cb4 (diff) |
chore: update to Rust 1.75 (#21731)
Diffstat (limited to 'cli/lsp/analysis.rs')
-rw-r--r-- | cli/lsp/analysis.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/analysis.rs b/cli/lsp/analysis.rs index 2bff545c0..88ca47f67 100644 --- a/cli/lsp/analysis.rs +++ b/cli/lsp/analysis.rs @@ -423,11 +423,11 @@ fn fix_ts_import_action( if action.fix_name == "import" { let change = action .changes - .get(0) + .first() .ok_or_else(|| anyhow!("Unexpected action changes."))?; let text_change = change .text_changes - .get(0) + .first() .ok_or_else(|| anyhow!("Missing text change."))?; if let Some(captures) = IMPORT_SPECIFIER_RE.captures(&text_change.new_text) { |