From 50499c8a3315cefecd7f71e9edb0d9bc13cafbe7 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 1 May 2018 23:40:36 -0700 Subject: [PATCH] Remove some compiler warnings --- schala-repl/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/schala-repl/src/lib.rs b/schala-repl/src/lib.rs index fb1ba3b..b850e3a 100644 --- a/schala-repl/src/lib.rs +++ b/schala-repl/src/lib.rs @@ -25,7 +25,6 @@ use std::fmt::Write as FmtWrite; use itertools::Itertools; use rustyline::error::ReadlineError; use rustyline::Editor; -use self::colored::*; mod language; mod webapp; @@ -301,9 +300,9 @@ impl Repl { if let Some(stage) = stages.iter().find(|stage_name| **stage_name == debug_stage) { let msg = format!("{} debug for stage {}", if show { "Enabling" } else { "Disabling" }, debug_stage); if show { - self.options.debug_stages.insert(debug_stage); + self.options.debug_stages.insert(stage.clone()); } else { - self.options.debug_stages.remove(&debug_stage); + self.options.debug_stages.remove(stage); } Some(msg) } else {