You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since you already do safety check assert_eq!(self.arena_id, A::arena_id(id));, maybe it is possible to use self.items.get instead of []?
In order to omit Vec's assert inside Index.
The text was updated successfully, but these errors were encountered:
If I'm understanding the issue correctly, I believe you are confusing the arena_id check as being equivalent to the Vec index check, or were you actually implying that if the arena_id is equivalent then idmust be inside the range of self.items?
id-arena/src/lib.rs
Line 510 in 473ce26
Since you already do safety check
assert_eq!(self.arena_id, A::arena_id(id));
, maybe it is possible to useself.items.get
instead of[]
?In order to omit Vec's assert inside Index.
The text was updated successfully, but these errors were encountered: