From e84550f3ec93a0c673a318963c5a0ee2295af293 Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 29 Dec 2016 02:09:44 -0800 Subject: [PATCH] Kill two compilation warnings --- src/compilation.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compilation.rs b/src/compilation.rs index b563f86..bbfa776 100644 --- a/src/compilation.rs +++ b/src/compilation.rs @@ -3,7 +3,7 @@ extern crate llvm_sys; use std::collections::HashMap; use self::llvm_sys::prelude::*; -use parser::{ParseResult, AST, ASTNode, Prototype, Function, Expression}; +use parser::{AST, ASTNode, Function, Expression}; use llvm_wrap as LLVMWrap; diff --git a/src/main.rs b/src/main.rs index 49d066f..ef81027 100644 --- a/src/main.rs +++ b/src/main.rs @@ -114,7 +114,7 @@ fn repl_handler(input: &str, state: &mut InterpreterState) -> String { let mut result = String::new(); let tokens = match tokenize(input) { - Err(e) => return format!("Tokenization error"), + Err(e) => return format!("Tokenization error: {}", e.msg), Ok(t) => t, };