From 081e0ae8ae4ead621010e7e6a060194fe2433bad Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 16 Mar 2021 13:49:22 +0900 Subject: syntax: highlight_iter always returns Ok() --- helix-term/src/ui/editor.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'helix-term') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index ff3c70cf..31a19649 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -94,7 +94,6 @@ impl EditorView { Some(syntax) => { syntax .highlight_iter(text.slice(..), Some(range), None, |_| None) - .unwrap() .collect() // TODO: we collect here to avoid holding the lock, fix later } None => vec![Ok(HighlightEvent::Source { -- cgit v1.2.3-70-g09d2