From 30233456dfe36627a28b48be79b0fdcd67bf3310 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 22 Mar 2018 21:33:50 +0100 Subject: [PATCH] Fix: Use retrieve in retrieve variant --- lib/domain/libimaghabit/src/habit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/domain/libimaghabit/src/habit.rs b/lib/domain/libimaghabit/src/habit.rs index 4548fb66..ceb52a13 100644 --- a/lib/domain/libimaghabit/src/habit.rs +++ b/lib/domain/libimaghabit/src/habit.rs @@ -115,7 +115,7 @@ impl HabitTemplate for Entry { let date = date_to_string(date); let id = instance_id_for_name_and_datestr(&name, &date)?; - store.create(id) + store.retrieve(id) .map_err(From::from) .and_then(|entry| postprocess_instance(entry, name, date, comment)) }