This commit is contained in:
Greg Burri 2025-05-07 20:12:49 +02:00
parent 198bff6e4a
commit 6f014ef238
19 changed files with 118 additions and 81 deletions

View file

@ -240,10 +240,9 @@ pub struct ShoppingListItem {
/*** Misc ***/
pub fn to_string<T>(ron: T) -> String
pub fn to_string<T>(ron: T) -> Result<String, ron::Error>
where
T: Serialize,
{
// TODO: handle'unwrap'.
to_string_pretty(&ron, PrettyConfig::new()).unwrap()
to_string_pretty(&ron, PrettyConfig::new())
}

View file

@ -2,7 +2,7 @@ use serde::Deserialize;
use strum::EnumCount;
#[repr(i64)]
#[derive(Debug, Clone, EnumCount, Deserialize)]
#[derive(Debug, Clone, Copy, EnumCount, Deserialize)]
pub enum Sentence {
MainTitle = 0,
CreateNewRecipe,