summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Sitkevich <1553398+sitkevij@users.noreply.github.com>2021-02-18 20:08:10 -0800
committerGitHub <noreply@github.com>2021-02-18 20:08:10 -0800
commitb1708bc22ce23d745550ac4bcb5d9374f0b5538b (patch)
tree4df82bb010a8fedc08154cb1b8f1c8e68fb338b0
parent5097454aa78e8c4d0890cf05daea7af05654c2ed (diff)
parent812545ee9da7aa3fc4c96fd3d703068be078536e (diff)
Merge pull request #54 from sitkevij/issue/53-clippy-lint
Issue/53 clippy lint
-rw-r--r--README.md11
-rw-r--r--src/main.rs2
2 files changed, 7 insertions, 6 deletions
diff --git a/README.md b/README.md
index 7184052..42582d3 100644
--- a/README.md
+++ b/README.md
@@ -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);
}
}