mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-28 08:05:52 +00:00
Satisfy clippy
This commit is contained in:
1 parent
b5c224c119
commit
1c4c7ed9a5
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -103,7 +103,7 @@ fn run() -> Result<(), AnyhowError> {
|
||||
.long("color")
|
||||
.takes_value(true)
|
||||
.value_name("WHEN")
|
||||
.possible_values(&["always", "auto", "never"])
|
||||
.possible_values(["always", "auto", "never"])
|
||||
.default_value_if("plain", None, Some("never"))
|
||||
.default_value("always")
|
||||
.help(
|
||||
@@ -119,7 +119,7 @@ fn run() -> Result<(), AnyhowError> {
|
||||
.long("border")
|
||||
.takes_value(true)
|
||||
.value_name("STYLE")
|
||||
.possible_values(&["unicode", "ascii", "none"])
|
||||
.possible_values(["unicode", "ascii", "none"])
|
||||
.default_value_if("plain", None, Some("none"))
|
||||
.default_value("unicode")
|
||||
.help(
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
enum SqueezeState {
|
||||
/// not enabled
|
||||
Disabled,
|
||||
|
||||
Reference in new issue
Block a user