From 5d04b91635c3dfa373e50035595b24954c42fe6c Mon Sep 17 00:00:00 2001 From: threadexio Date: Fri, 3 Jan 2025 02:15:40 +0200 Subject: [PATCH] fix: clippy warnings --- src/config.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 2288967..6fc033f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -198,7 +198,10 @@ impl ArgMatchesExt for ArgMatches { fn flag(&self, id: &str) -> Option { match self.value_source(id).unwrap() { ValueSource::DefaultValue => None, - _ => Some(self.get_one::(id).unwrap().clone().into()), + _ => { + let x = *self.get_one::(id).unwrap(); + Some(x.into()) + } } } }