Skip to content

Commit

Permalink
Don't use redundant return value
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 20, 2022
1 parent 6bd2465 commit bf56874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fj-kernel/src/storage/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ impl<T> Reservation<T> {
/// limitations.
pub fn complete(self, object: T) -> Handle<T> {
let mut inner = self.store.write();
let ptr = inner.blocks.insert(self.index, object);
inner.blocks.insert(self.index, object);

Handle {
store: self.store.clone(),
ptr,
ptr: self.ptr,
}
}
}
Expand Down

0 comments on commit bf56874

Please sign in to comment.