refactor: fix elided_named_lifetimes warning in beta Rust

This commit is contained in:
link2xt
2024-10-14 05:26:53 +00:00
parent d660f55a99
commit 287256693c

View File

@@ -73,7 +73,7 @@ async fn get_unique_quota_roots_and_usage(
fn get_highest_usage<'t>(
unique_quota_roots: &'t BTreeMap<String, Vec<QuotaResource>>,
) -> Result<(u64, &'t String, &QuotaResource)> {
) -> Result<(u64, &'t String, &'t QuotaResource)> {
let mut highest: Option<(u64, &'t String, &QuotaResource)> = None;
for (name, resources) in unique_quota_roots {
for r in resources {