From 7b923e682608efb17db8afb2688d7b33dd9e5deb Mon Sep 17 00:00:00 2001 From: Emily Toop Date: Tue, 21 Nov 2017 16:51:08 +0000 Subject: [PATCH] Match updated dependencies on CLI crate and remove unused import --- tools/cli/Cargo.toml | 6 +++--- tools/cli/src/mentat_cli/repl.rs | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/cli/Cargo.toml b/tools/cli/Cargo.toml index cd74523b..0958a369 100644 --- a/tools/cli/Cargo.toml +++ b/tools/cli/Cargo.toml @@ -18,11 +18,11 @@ linefeed = "0.1" log = "0.3" tempfile = "1.1" combine = "2.2.2" -lazy_static = "0.2.2" -error-chain = "0.8.1" +lazy_static = "0.2" +error-chain = { git = "https://github.com/rnewman/error-chain", branch = "rnewman/sync" } [dependencies.rusqlite] -version = "0.11" +version = "0.12" # System sqlite might be very old. features = ["bundled", "limits"] diff --git a/tools/cli/src/mentat_cli/repl.rs b/tools/cli/src/mentat_cli/repl.rs index acf1d208..b7c953bd 100644 --- a/tools/cli/src/mentat_cli/repl.rs +++ b/tools/cli/src/mentat_cli/repl.rs @@ -11,8 +11,6 @@ use std::collections::HashMap; use std::process; -use error_chain::ChainedError; - use mentat::query::QueryResults; use mentat_core::TypedValue; @@ -135,7 +133,7 @@ impl Repl { let old_db_name = self.store.db_name.clone(); match self.store.close() { Ok(_) => println!("Database {:?} closed", db_output_name(&old_db_name)), - Err(e) => println!("{}", e.display()) + Err(e) => println!("{}", e) }; }