Skip to content

Commit

Permalink
Remove useless ref mut on let binding
Browse files Browse the repository at this point in the history
  • Loading branch information
marmeladema authored and dwrensha committed Aug 31, 2022
1 parent 88d3e03 commit 62d6a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capnp/src/private/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl <A> BuilderArenaImplInner<A> where A: Allocator {
}

fn allocate(&mut self, segment_id: u32, amount: WordCount32) -> Option<u32> {
let ref mut seg = &mut self.segments[segment_id as usize];
let seg = &mut self.segments[segment_id as usize];
if amount > seg.capacity - seg.allocated {
None
} else {
Expand Down

0 comments on commit 62d6a90

Please sign in to comment.