From ee8d185071d6701f5b8c395369d9979c50cd5ee5 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Tue, 16 Aug 2022 16:16:41 +0300 Subject: [PATCH] repo/fs: fixup update task index --- src/repo/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repo/fs.rs b/src/repo/fs.rs index 3c4bb07..01e0678 100644 --- a/src/repo/fs.rs +++ b/src/repo/fs.rs @@ -95,7 +95,7 @@ impl Repository for FsRepo { return Err(Error::NotFound); } - let mut task = &mut tasks[id]; + let mut task = &mut tasks[id - 1]; if let Some(name) = update_data.name { task.name = name; }