summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsitkevij <1553398+sitkevij@users.noreply.github.com>2021-02-18 19:51:05 -0800
committersitkevij <1553398+sitkevij@users.noreply.github.com>2021-02-18 19:51:05 -0800
commit812545ee9da7aa3fc4c96fd3d703068be078536e (patch)
tree052c0780d40987b547e257d3467273c89eca1c43
parentb0a844a83c9c15f2416fa7e5748347fbe1ee4a77 (diff)
#53 resolve new clippy lint print_literal
-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 cd6f904..f64dad4 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
@@ -168,6 +168,11 @@ byte[] a = new byte[]{
`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
@@ -195,7 +200,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 9e0b9c1..df0dd14 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);
}
}