fix: patch clippy issue

This commit is contained in:
Mahmoud Harmouch 2024-11-14 06:02:29 +02:00
parent 017a228f6b
commit 8ec1726e50
No known key found for this signature in database
GPG key ID: A46F5CAC7585856F

View file

@ -52,14 +52,12 @@ pub fn attempt_version_bump(args: Cli) -> Option<String> {
let mut parsed: HashMap<String, String> = HashMap::new();
if let Some(captures) = regex.captures(&current_version) {
for name in regex.capture_names() {
if let Some(name) = name {
for name in regex.capture_names().flatten() {
if let Some(capture) = captures.name(name) {
parsed.insert(name.to_string(), capture.as_str().to_string());
}
}
}
}
let order: Vec<&str> = args
.serialize