Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMarkelov committed Aug 20, 2020
1 parent 01403e0 commit 0ae3e93
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "haku"
version = "0.3.4"
version = "0.3.5"
authors = ["Vladimir Markelov <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion changelog
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 0 additions & 2 deletions src/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/var.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/vm.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use dirs;
use std::convert::From;
use std::env;
use std::fmt;
Expand Down

0 comments on commit 0ae3e93

Please sign in to comment.