mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 08:16:32 +02:00
Implement IntoValue
for more types (#13744)
# Description Implements `IntoValue` for `&str` and `DateTime` as well as other nushell types like `Record` and `Closure`. Also allows `HashMap`s with keys besides `String` to implement `IntoValue`.
This commit is contained in:
@ -191,7 +191,7 @@ fn enum_into_value(
|
||||
.as_str()
|
||||
.to_case(container_attrs.rename_all.unwrap_or(Case::Snake));
|
||||
match &variant.fields {
|
||||
// In the future we can implement more complexe enums here.
|
||||
// In the future we can implement more complex enums here.
|
||||
Fields::Named(fields) => Err(DeriveError::UnsupportedEnums {
|
||||
fields_span: fields.span(),
|
||||
}),
|
||||
|
Reference in New Issue
Block a user