From bcdfe3ceea93cb3f11c6af3a1b6e963379fd5d44 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 22 Mar 2018 21:25:09 +0100 Subject: [PATCH] Use variable mutable, so we can create an instance --- bin/domain/imag-habit/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/domain/imag-habit/src/main.rs b/bin/domain/imag-habit/src/main.rs index 4e625923..ccb8e71e 100644 --- a/bin/domain/imag-habit/src/main.rs +++ b/bin/domain/imag-habit/src/main.rs @@ -518,7 +518,7 @@ fn done(rt: &Runtime) { 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_date = r.next_instance_date().map_err_trace_exit_unwrap(1); if let Some(next) = next_instance_date {