From 5c84677f879cc3e0eb1a926a70ae0eb7479410a1 Mon Sep 17 00:00:00 2001 From: Nicolas Auler Date: Wed, 18 Dec 2024 02:02:09 -0300 Subject: [PATCH] fix: missed from_str for new investments category type --- src/schema.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/schema.rs b/src/schema.rs index 0cea99d..0f9226a 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -45,6 +45,7 @@ impl FromStr for ExpenseCategory { "Transfer" => return Ok(Self::Transfer), "Transport" => return Ok(Self::Transport), "Others" => return Ok(Self::Others), + "Investments" => return Ok(Self::Investments), _ => return Err(format!("{str} is not a valid expense type")), } }