From ee12e10ac608d7a5a0dbc358e766efec41248e4a Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 18 Dec 2016 22:04:36 -0800 Subject: [PATCH] Fix slice syntax --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4b3f74b..30c2699 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,7 +76,7 @@ struct InterpreterState { impl ReplState for InterpreterState { fn update_state(&mut self, input: &Vec<&str>) { - match &input[..] { + match input[..] { ["set", "show", "tokens", "true"] => { self.show_tokens = true; },