Skip to content

Commit 899ad09

Browse files
committed
Remove comments
1 parent 8ec5646 commit 899ad09

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

helix-term/src/commands/lsp.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,12 +1463,10 @@ pub fn pull_diagnostic_for_current_doc(editor: &Editor, jobs: &mut crate::job::J
14631463
path: PathBuf,
14641464
report: Vec<lsp::Diagnostic>,
14651465
result_id: Option<String>| {
1466-
// TODO: No clone and no unwrap
14671466
let uri = helix_core::Uri::try_from(path.clone()).unwrap();
14681467
let mut diagnostics: Vec<(Diagnostic, LanguageServerId)> =
14691468
report.into_iter().map(|d| (d, server_id)).collect();
14701469

1471-
// TODO: Not clone?
14721470
let old_diagnostics = editor.diagnostics.get(&uri).cloned();
14731471

14741472
if let Some(doc) = editor.document_by_path_mut(&path) {

0 commit comments

Comments
 (0)