Cleaning
This commit is contained in:
parent
198bff6e4a
commit
6f014ef238
19 changed files with 118 additions and 81 deletions
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue