diff options
author | Julian Sitkevich <1553398+sitkevij@users.noreply.github.com> | 2021-02-18 20:08:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 20:08:10 -0800 |
commit | b1708bc22ce23d745550ac4bcb5d9374f0b5538b (patch) | |
tree | 4df82bb010a8fedc08154cb1b8f1c8e68fb338b0 | |
parent | 5097454aa78e8c4d0890cf05daea7af05654c2ed (diff) | |
parent | 812545ee9da7aa3fc4c96fd3d703068be078536e (diff) |
Merge pull request #54 from sitkevij/issue/53-clippy-lint
Issue/53 clippy lint
-rw-r--r-- | README.md | 11 | ||||
-rw-r--r-- | src/main.rs | 2 |
2 files changed, 7 insertions, 6 deletions
@@ -16,7 +16,7 @@ $ hx tests/files/alphanumeric.txt bytes: 68 ``` -`hx` also accepts stdin as input. +[hx](https://github.com/sitkevij/hex) also accepts stdin as input. ```sh cat "tests/files/alphanumeric.txt" | hx @@ -177,6 +177,11 @@ let a: [UInt8] = [ `hx` will honor the NO_COLOR environment variable. If set, no color will be output to the terminal. +Rust `no_color` crate: + +* <https://crates.io/crates/no_color> +* <https://github.com/sitkevij/no_color> + ## manual ```txt @@ -204,7 +209,3 @@ OPTIONS: ARGS: <INPUTFILE> Pass file path as an argument for hex dump ``` - -## license - -[MIT](LICENSE) diff --git a/src/main.rs b/src/main.rs index 57b62d9..3fc5972 100644 --- a/src/main.rs +++ b/src/main.rs @@ -93,7 +93,7 @@ fn main() { _ => false, }; if !suppress_error { - eprintln!("{} {}", "error:", err); + eprintln!("error: {}", err); process::exit(1); } } |