diff --git a/ofborg/src/outpathdiff.rs b/ofborg/src/outpathdiff.rs index 55e9398..41168e1 100644 --- a/ofborg/src/outpathdiff.rs +++ b/ofborg/src/outpathdiff.rs @@ -196,7 +196,7 @@ fn parse_lines(data: &mut BufRead) -> PackageOutPaths { if split.len() == 2 { let outpaths = String::from(split[1]); - let path: Vec<&str> = split[0].rsplitn(2, ".").collect(); + let path: Vec<&str> = split[0].rsplitn(2, '.').collect(); if path.len() == 2 { Some(( PackageArch { diff --git a/ofborg/src/tasks/massrebuilder.rs b/ofborg/src/tasks/massrebuilder.rs index 62557f8..288efe6 100644 --- a/ofborg/src/tasks/massrebuilder.rs +++ b/ofborg/src/tasks/massrebuilder.rs @@ -654,7 +654,7 @@ fn parse_commit_messages(messages: &[String]) -> Vec { .iter() .filter_map(|line| { // Convert "foo: some notes" in to "foo" - let parts: Vec<&str> = line.splitn(2, ":").collect(); + let parts: Vec<&str> = line.splitn(2, ':').collect(); if parts.len() == 2 { Some(parts[0]) } else { @@ -662,7 +662,7 @@ fn parse_commit_messages(messages: &[String]) -> Vec { } }) .flat_map(|line| { - let pkgs: Vec<&str> = line.split(",").collect(); + let pkgs: Vec<&str> = line.split(',').collect(); pkgs }) .map(|line| line.trim().to_owned())