Remove unnecessary parentheses around closure body, to fix unused-parens warning

This commit is contained in:
Josh Triplett 2025-07-11 16:53:50 -07:00
parent eabb4cd923
commit 8fd9309102

View File

@ -204,7 +204,7 @@ impl<'a> SummariesCache<'a> {
let size = self
.versions
.iter()
.map(|(_version, data)| (10 + data.len()))
.map(|(_version, data)| 10 + data.len())
.sum();
let mut contents = Vec::with_capacity(size);
contents.push(CURRENT_CACHE_VERSION);