File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
stackable-versioned-macros/src/codegen/container/struct
stackable-versioned/tests Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ impl Struct {
194194 // status in a later step.
195195 if object_kind != #enum_ident_string {
196196 return Err ( #parse_object_error:: UnexpectedKind {
197- kind: object_kind. to_string ( ) ,
198- expected: #enum_ident_string. to_string ( ) ,
197+ kind: object_kind. to_owned ( ) ,
198+ expected: #enum_ident_string. to_owned ( ) ,
199199 } ) ;
200200 }
201201
Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ pub enum Gender {
6666impl From < Gender > for String {
6767 fn from ( value : Gender ) -> Self {
6868 match value {
69- Gender :: Unknown => "Unknown" . to_string ( ) ,
70- Gender :: Male => "Male" . to_string ( ) ,
71- Gender :: Female => "Female" . to_string ( ) ,
69+ Gender :: Unknown => "Unknown" . to_owned ( ) ,
70+ Gender :: Male => "Male" . to_owned ( ) ,
71+ Gender :: Female => "Female" . to_owned ( ) ,
7272 }
7373 }
7474}
You can’t perform that action at this time.
0 commit comments