fix wrong position set method
This commit is contained in:
parent
0e7eca5ebf
commit
76c7f949ea
1 changed files with 3 additions and 3 deletions
|
|
@ -129,10 +129,10 @@ impl RecipeListChange {
|
||||||
let new_repl = current_repl.1.unwrap();
|
let new_repl = current_repl.1.unwrap();
|
||||||
|
|
||||||
let diff = old_repl.compare(new_repl);
|
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() {
|
} else if current_repl.0.is_none() && current_repl.1.is_some() {
|
||||||
// new value
|
// new value
|
||||||
*checked.get_mut(ci).unwrap() = current_repl
|
checked[ci] = current_repl
|
||||||
.1
|
.1
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.to_map()
|
.to_map()
|
||||||
|
|
@ -143,7 +143,7 @@ impl RecipeListChange {
|
||||||
.collect();
|
.collect();
|
||||||
} else if current_repl.0.is_some() && current_repl.1.is_none() {
|
} else if current_repl.0.is_some() && current_repl.1.is_none() {
|
||||||
// new value does not exist
|
// new value does not exist
|
||||||
*checked.get_mut(ci).unwrap() = current_repl
|
checked[ci] = current_repl
|
||||||
.0
|
.0
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.to_map()
|
.to_map()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue