aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src/options.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-09-22 17:53:58 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-09-22 17:53:58 +0200
commit6f2630992fe340ad1a122ec10c649f756e478185 (patch)
treec8c95d46546cd71e2cd5e15faef02ca9acd2b70b /nihav-core/src/options.rs
parentf44bddc9b5520507c7571b89763de668238d790a (diff)
downloadnihav-6f2630992fe340ad1a122ec10c649f756e478185.tar.gz
fix some clippy warnings
Diffstat (limited to 'nihav-core/src/options.rs')
-rw-r--r--nihav-core/src/options.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/nihav-core/src/options.rs b/nihav-core/src/options.rs
index d3d8be8..4e4c7aa 100644
--- a/nihav-core/src/options.rs
+++ b/nihav-core/src/options.rs
@@ -183,7 +183,7 @@ impl NAOptionDefinition {
Ok(())
},
NAValue::String(ref cur_str) => {
- if let NAOptionDefinitionType::String(Some(ref strings)) = self.opt_type {
+ if let NAOptionDefinitionType::String(Some(strings)) = self.opt_type {
for str in strings.iter() {
if cur_str == str {
return Ok(());
@@ -205,7 +205,7 @@ impl fmt::Display for NAOptionDefinition {
NAOptionDefinitionType::None => write!(f, "{}: {}", self.name, self.description),
NAOptionDefinitionType::Bool => write!(f, "[no]{}: {}", self.name, self.description),
NAOptionDefinitionType::String(ref str_list) => {
- if let Some(ref opts) = str_list {
+ if let Some(opts) = str_list {
write!(f, "{} {}: {}", self.name, opts.join("|"), self.description)
} else {
write!(f, "{} <string>: {}", self.name, self.description)