From 4d24a436519d98b65f5b3b4a6f9970cc815c228f Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sun, 29 Aug 2021 23:02:46 +0900 Subject: dap: use smallvec! macro --- helix-term/src/application.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'helix-term') diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 70abc783..193ea505 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -327,7 +327,7 @@ impl Application { let path = path.clone(); self.editor .open(path, helix_view::editor::Action::Replace) - .unwrap(); + .unwrap(); // TODO: there should be no unwrapping! let (view, doc) = current!(self.editor); @@ -351,10 +351,10 @@ impl Application { .unwrap_or(0); Selection::new( - helix_core::SmallVec::from_vec(vec![Range::new( + helix_core::smallvec![Range::new( start.min(text_end), end.min(text_end), - )]), + )], 0, ) } else { -- cgit v1.2.3-70-g09d2