From 76c7f949ea70bd704a0665492be587edb0ff5ed4 Mon Sep 17 00:00:00 2001 From: Pakin Date: Wed, 10 Sep 2025 14:10:24 +0700 Subject: [PATCH] fix wrong position set method --- src/models/recipev2.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/recipev2.rs b/src/models/recipev2.rs index 9355c8b..bde259e 100644 --- a/src/models/recipev2.rs +++ b/src/models/recipev2.rs @@ -129,10 +129,10 @@ impl RecipeListChange { let new_repl = current_repl.1.unwrap(); let diff = old_repl.compare(new_repl); - *checked.get_mut(ci).unwrap() = diff; + checked[ci] = diff; } else if current_repl.0.is_none() && current_repl.1.is_some() { // new value - *checked.get_mut(ci).unwrap() = current_repl + checked[ci] = current_repl .1 .unwrap() .to_map() @@ -143,7 +143,7 @@ impl RecipeListChange { .collect(); } else if current_repl.0.is_some() && current_repl.1.is_none() { // new value does not exist - *checked.get_mut(ci).unwrap() = current_repl + checked[ci] = current_repl .0 .unwrap() .to_map()