mirror of
https://github.com/nushell/nushell.git
synced 2024-11-24 17:34:00 +01:00
Removed CustomValue portion of CustomValue type name strings. (#14054)
# Description This changes the names returned by CustomValue::name() of the various custom value structs to just say the name of the thing they represent. For instance "DataFrameCustomValue" is not just "DataFrame". # User-Facing Changes - Places such as or errors where NuDataFrameCustomValue would be seen, now just shows as NuDataFrame.
This commit is contained in:
parent
44be445b57
commit
2df91e7f92
@ -27,7 +27,7 @@ impl CustomValue for NuDataFrameCustomValue {
|
||||
}
|
||||
|
||||
fn type_name(&self) -> String {
|
||||
"NuDataFrameCustomValue".into()
|
||||
"NuDataFrame".into()
|
||||
}
|
||||
|
||||
fn to_base_value(&self, span: Span) -> Result<Value, ShellError> {
|
||||
|
@ -27,7 +27,7 @@ impl CustomValue for NuLazyFrameCustomValue {
|
||||
}
|
||||
|
||||
fn type_name(&self) -> String {
|
||||
"NuLazyFrameCustomValue".into()
|
||||
"NuLazyFrame".into()
|
||||
}
|
||||
|
||||
fn to_base_value(&self, span: Span) -> Result<Value, ShellError> {
|
||||
|
@ -19,7 +19,7 @@ impl CustomValue for NuLazyGroupByCustomValue {
|
||||
}
|
||||
|
||||
fn type_name(&self) -> String {
|
||||
"NuLazyGroupByCustomValue".into()
|
||||
"NuLazyGroupBy".into()
|
||||
}
|
||||
|
||||
fn to_base_value(&self, span: Span) -> Result<Value, ShellError> {
|
||||
|
@ -20,7 +20,7 @@ impl CustomValue for NuWhenCustomValue {
|
||||
}
|
||||
|
||||
fn type_name(&self) -> String {
|
||||
"NuWhenCustomValue".into()
|
||||
"NuWhen".into()
|
||||
}
|
||||
|
||||
fn to_base_value(&self, span: Span) -> Result<Value, ShellError> {
|
||||
|
Loading…
Reference in New Issue
Block a user