File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ impl<T: Clone> Dict<T> {
213
213
loop {
214
214
if let LookupResult :: Existing ( entry_index) = self . lookup ( vm, key) ? {
215
215
let mut inner = self . borrow_value_mut ( ) ;
216
- if let Some ( _ ) = & inner. entries [ entry_index] {
216
+ if inner. entries [ entry_index] . is_some ( ) {
217
217
inner. entries [ entry_index] = None ;
218
218
inner. size -= 1 ;
219
219
break Ok ( true ) ;
@@ -237,7 +237,7 @@ impl<T: Clone> Dict<T> {
237
237
match self . lookup ( vm, key) ? {
238
238
LookupResult :: Existing ( entry_index) => {
239
239
let mut inner = self . borrow_value_mut ( ) ;
240
- if let Some ( _ ) = & inner. entries [ entry_index] {
240
+ if inner. entries [ entry_index] . is_some ( ) {
241
241
inner. entries [ entry_index] = None ;
242
242
inner. size -= 1 ;
243
243
break Ok ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments