File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ impl Misc {
3030
3131 // update values from the DB (if exists)
3232 for row in rows {
33- assert ! ( !m. insert( Memory :: from_db_row( & row. key, row. value. as_deref ( ) ) . unwrap( ) ) )
33+ assert ! ( !m. insert( Memory :: from_db_row( & row. key, row. value) . unwrap( ) ) )
3434 // * panics if the DB was malformed or changed unexpectedly
3535 }
3636 }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub enum Memory {
1313impl Memory {
1414 // Constructors
1515
16- pub fn from_db_row ( key : & str , value : Option < & str > ) -> Option < Self > {
16+ pub fn from_db_row ( key : & str , value : Option < String > ) -> Option < Self > {
1717 if key == HIGHLIGHT_REQUEST_ENTRY {
1818 Some ( Self :: HighlightRequestEntry ( Bool :: from_db_value ( value) ) )
1919 } else {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ impl Bool {
1313 if value { Self :: True } else { Self :: False }
1414 }
1515
16- pub fn from_db_value ( key : Option < & str > ) -> Self {
16+ pub fn from_db_value ( key : Option < String > ) -> Self {
1717 if key. is_some_and ( |k| k == TRUE ) {
1818 Self :: True
1919 } else {
You can’t perform that action at this time.
0 commit comments