Skip to content

Commit 5d6c759

Browse files
committed
comment about reset being different to new
1 parent 751e0d6 commit 5d6c759

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/store/fs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ impl entity_manager::Params for HashContext {
239239
fn reset(&mut self, id: &Self::EntityId, global: &Self::GlobalState) {
240240
self.id = *id;
241241
self.global = global.clone();
242+
// this is identical to self.state = BaoFileHandle::default(),
243+
// but does not allocate a new handle.
242244
self.state.send_replace(BaoFileStorage::Initial);
243245
}
244246

0 commit comments

Comments
 (0)