Closed jalcine closed 2 years ago
I ran into a situation where https://github.com/manuel-woelker/rust-vfs/blob/19c1e076ba503376eb06900c936a3e23880bdc28/src/impls/memory.rs#L200 causes my test to panic. It looks like this could be mitigated by calling self.exists() before attempting to pluck the value out or using the Vec::get method to safely get that value out.
self.exists()
Vec::get
(Originally published at: https://jacky.wtf/2022/4/rf/rfC0gc2rn9hwfkifMaPBgeAE)
Good point, thanks for the report! Should be fixed in 0.7.1
Thank you!
(Originally published at: https://jacky.wtf/2022/4/Pe/Pe1yAGt6sFF-R7MqYWQJHco-)
I ran into a situation where https://github.com/manuel-woelker/rust-vfs/blob/19c1e076ba503376eb06900c936a3e23880bdc28/src/impls/memory.rs#L200 causes my test to panic. It looks like this could be mitigated by calling
self.exists()
before attempting to pluck the value out or using theVec::get
method to safely get that value out.(Originally published at: https://jacky.wtf/2022/4/rf/rfC0gc2rn9hwfkifMaPBgeAE)