Satisfy clippy

This commit is contained in:
Sharif Haason authored and David Peter committed 2022-11-13 22:15:41 +01:00
1 parent b5c224c119
commit 1c4c7ed9a5
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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
View File
@@ -1,4 +1,4 @@
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
enum SqueezeState {
/// not enabled
Disabled,