Skip to content

Commit

Permalink
fix: include ToOwned
Browse files Browse the repository at this point in the history
  • Loading branch information
not-matthias committed Feb 22, 2024
1 parent a5e32a6 commit fad7e38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kinded_macros/src/gen/kind_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ fn gen_impl_from_str_trait(meta: &Meta) -> TokenStream {
} // }

// If still no success, then return an error
use alloc::borrow::ToOwned;
let error = ::kinded::ParseKindError::from_type_and_string::<#kind_name>(s.to_owned());
Err(error)
}
Expand Down

0 comments on commit fad7e38

Please sign in to comment.