citool: cleanup mismatched_lifetime_syntaxes warnings
This commit is contained in:
parent
8df154bffd
commit
d8b40bdb5a
3 changed files with 3 additions and 3 deletions
|
|
@ -75,7 +75,7 @@ fn format_build_step_diffs(current: &BuildStep, parent: &BuildStep) -> String {
|
|||
}
|
||||
}
|
||||
|
||||
fn get_steps(step: &BuildStep) -> Vec<StepByName> {
|
||||
fn get_steps(step: &BuildStep) -> Vec<StepByName<'_>> {
|
||||
step.linearize_steps().into_iter().map(|v| StepByName(v)).collect()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ fn write_page<T: Template>(dir: &Path, name: &str, template: &T) -> anyhow::Resu
|
|||
Ok(())
|
||||
}
|
||||
|
||||
fn gather_test_suites(job_metrics: &HashMap<JobName, JobMetrics>) -> TestSuites {
|
||||
fn gather_test_suites(job_metrics: &HashMap<JobName, JobMetrics>) -> TestSuites<'_> {
|
||||
struct CoarseTestSuite<'a> {
|
||||
tests: BTreeMap<String, Test<'a>>,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,6 +31,6 @@ where
|
|||
}
|
||||
|
||||
/// Normalizes Windows-style path delimiters to Unix-style paths.
|
||||
pub fn normalize_path_delimiters(name: &str) -> Cow<str> {
|
||||
pub fn normalize_path_delimiters(name: &str) -> Cow<'_, str> {
|
||||
if name.contains("\\") { name.replace('\\', "/").into() } else { name.into() }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue