diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-02-24 20:03:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 20:03:12 -0500 |
commit | 3b12afd0723b288feb7c8c53ac3938a17fd0e57c (patch) | |
tree | 8ac398efaef6e59e3ab2278f378706aa44b5641e /cli/lsp/tsc.rs | |
parent | c59152e4000393ad122855c26198c1d942497c00 (diff) |
chore: upgrade to Rust 1.59 (#13767)
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index f2d733e6f..a0f2008a4 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -1402,9 +1402,7 @@ impl FileTextChanges { ops.push(lsp::DocumentChangeOperation::Edit(lsp::TextDocumentEdit { text_document: lsp::OptionalVersionedTextDocumentIdentifier { uri: specifier.clone(), - version: maybe_asset_or_document - .map(|d| d.document_lsp_version()) - .flatten(), + version: maybe_asset_or_document.and_then(|d| d.document_lsp_version()), }, edits, })); @@ -2064,7 +2062,7 @@ impl CompletionEntry { return Some(insert_text.clone()); } } else { - return Some(self.name.replace("#", "")); + return Some(self.name.replace('#', "")); } } |