Skip to content

Commit a949790

Browse files
committed
remove unnecessary parentheses
1 parent 577896d commit a949790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

capnp-rpc/src/rpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ impl<VatId> ConnectionState<VatId> {
13921392
let contains_key = state.exports_by_cap.borrow().contains_key(&ptr);
13931393
if contains_key {
13941394
// We've already seen and exported this capability before. Just up the refcount.
1395-
let export_id = state.exports_by_cap.borrow()[(&ptr)];
1395+
let export_id = state.exports_by_cap.borrow()[&ptr];
13961396
match state.exports.borrow_mut().find(export_id) {
13971397
None => unreachable!(),
13981398
Some(exp) => {

0 commit comments

Comments
 (0)