simplify, how can you not love clippy

This commit is contained in:
Christof Petig 2023-10-20 00:13:38 +02:00
parent f73f52605f
commit 7c4057d7d8

View File

@ -213,7 +213,7 @@ impl<'a> CacheCombined<'a> for AnyCache<'a> {
let data: Result<A, _> = ASSETS.combine(|cache: AnyCache| A::load(cache, &id));
data.map(|data| self.get_or_insert(specifier, data))
},
|obj| Ok(obj),
Ok,
)
}
}