From e39bd211d1579bfafa1774f6915af5725041781e Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 1 Oct 2020 12:23:07 +0900 Subject: argh -> clap to speed up compilation (no syn/proc_macro) --- helix-term/src/editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term/src/editor.rs') diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs index 2cc210f4..b745eff2 100644 --- a/helix-term/src/editor.rs +++ b/helix-term/src/editor.rs @@ -1,4 +1,4 @@ -use crate::Args; +use clap::ArgMatches as Args; use helix_core::{state::coords_at_pos, state::Mode, syntax::HighlightEvent, Range, State}; use helix_view::{commands, keymap, View}; @@ -53,7 +53,7 @@ impl Editor { // TODO; move to state }; - if let Some(file) = args.files.pop() { + if let Some(file) = args.values_of_t::("files").unwrap().pop() { editor.open(file)?; } -- cgit v1.2.3-70-g09d2