mirror of
https://github.com/TECHNOFAB11/bump2version.git
synced 2025-12-12 16:10:07 +01:00
fix: patch clippy issue
This commit is contained in:
parent
017a228f6b
commit
8ec1726e50
1 changed files with 3 additions and 5 deletions
|
|
@ -52,11 +52,9 @@ pub fn attempt_version_bump(args: Cli) -> Option<String> {
|
|||
let mut parsed: HashMap<String, String> = HashMap::new();
|
||||
|
||||
if let Some(captures) = regex.captures(¤t_version) {
|
||||
for name in regex.capture_names() {
|
||||
if let Some(name) = name {
|
||||
if let Some(capture) = captures.name(name) {
|
||||
parsed.insert(name.to_string(), capture.as_str().to_string());
|
||||
}
|
||||
for name in regex.capture_names().flatten() {
|
||||
if let Some(capture) = captures.name(name) {
|
||||
parsed.insert(name.to_string(), capture.as_str().to_string());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue