Use variable mutable, so we can create an instance
This commit is contained in:
parent
b62d7eab85
commit
bcdfe3ceea
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,7 @@ fn done(rt: &Runtime) {
|
||||||
relevant
|
relevant
|
||||||
};
|
};
|
||||||
|
|
||||||
for r in relevant.iter() {
|
for mut r in relevant {
|
||||||
let next_instance_name = r.habit_name().map_err_trace_exit_unwrap(1);
|
let next_instance_name = r.habit_name().map_err_trace_exit_unwrap(1);
|
||||||
let next_instance_date = r.next_instance_date().map_err_trace_exit_unwrap(1);
|
let next_instance_date = r.next_instance_date().map_err_trace_exit_unwrap(1);
|
||||||
if let Some(next) = next_instance_date {
|
if let Some(next) = next_instance_date {
|
||||||
|
|
Loading…
Reference in a new issue