Skip to content

Commit 8fd9309

Browse files
committed
Remove unnecessary parentheses around closure body, to fix unused-parens warning
1 parent eabb4cd commit 8fd9309

File tree

1 file changed

+1
-1
lines changed
  • src/cargo/sources/registry/index

1 file changed

+1
-1
lines changed

src/cargo/sources/registry/index/cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl<'a> SummariesCache<'a> {
204204
let size = self
205205
.versions
206206
.iter()
207-
.map(|(_version, data)| (10 + data.len()))
207+
.map(|(_version, data)| 10 + data.len())
208208
.sum();
209209
let mut contents = Vec::with_capacity(size);
210210
contents.push(CURRENT_CACHE_VERSION);

0 commit comments

Comments
 (0)