huskies: merge 927
This commit is contained in:
@@ -240,6 +240,7 @@ fn parse_coverage_output(output: &str, passed: bool) -> String {
|
||||
}
|
||||
|
||||
/// Extract a value from lines like `"Rust line coverage: 62.5%"`.
|
||||
#[allow(clippy::string_slice)] // starts_with(prefix) guarantees prefix.len() is a char boundary
|
||||
fn extract_line_value(output: &str, prefix: &str) -> Option<String> {
|
||||
output
|
||||
.lines()
|
||||
@@ -248,6 +249,7 @@ fn extract_line_value(output: &str, prefix: &str) -> Option<String> {
|
||||
}
|
||||
|
||||
/// Extract a value from the summary block: `" Overall: 62.5%"`.
|
||||
#[allow(clippy::string_slice)] // starts_with(label) guarantees label.len() is a char boundary
|
||||
fn extract_summary_field(output: &str, label: &str) -> Option<String> {
|
||||
output
|
||||
.lines()
|
||||
|
||||
Reference in New Issue
Block a user