diff --git a/Cargo.lock b/Cargo.lock index beda6fe..602d685 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -162,7 +162,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "haku" -version = "0.3.4" +version = "0.3.5" dependencies = [ "chrono 0.4.15 (registry+https://github.com/rust-lang/crates.io-index)", "dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 3bfab82..2299cf0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "haku" -version = "0.3.4" +version = "0.3.5" authors = ["Vladimir Markelov "] edition = "2018" license = "Apache-2.0" diff --git a/changelog b/changelog index deb7f11..f5a8924 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,4 @@ -haku (0.3.4) unstable; urgency=medium +haku (0.3.5) unstable; urgency=medium * Allow hexadecimal number in expressions(including `for` sequence) diff --git a/src/func.rs b/src/func.rs index fa86c3f..9645eb2 100644 --- a/src/func.rs +++ b/src/func.rs @@ -2,8 +2,6 @@ use std::env; use std::ffi::OsStr; use std::path::{Path, PathBuf}; -use chrono; -use dirs; use glob::glob; use rand::prelude::*; use regex::Regex; diff --git a/src/var.rs b/src/var.rs index 8e44ace..3dc734e 100644 --- a/src/var.rs +++ b/src/var.rs @@ -259,9 +259,7 @@ impl VarValue { /// than failed one (exit code is not 0) fn cmp_greater(&self, val: &VarValue) -> bool { match self { - VarValue::Undefined => match val { - _ => false, - }, + VarValue::Undefined => false, VarValue::Exec(ex) => match val { VarValue::Exec(ex_val) => { if ex.code == 0 && ex_val.code != 0 { diff --git a/src/vm.rs b/src/vm.rs index 2ae7518..36f30b4 100644 --- a/src/vm.rs +++ b/src/vm.rs @@ -1,4 +1,3 @@ -use dirs; use std::convert::From; use std::env; use std::fmt;