From 2df91e7f926ca7dc54a565d236c35d8c3dbfc508 Mon Sep 17 00:00:00 2001 From: Jack Wright <56345+ayax79@users.noreply.github.com> Date: Fri, 11 Oct 2024 04:41:24 -0700 Subject: [PATCH] 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. --- .../src/dataframe/values/nu_dataframe/custom_value.rs | 2 +- .../src/dataframe/values/nu_lazyframe/custom_value.rs | 2 +- .../src/dataframe/values/nu_lazygroupby/custom_value.rs | 2 +- .../src/dataframe/values/nu_when/custom_value.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/nu_plugin_polars/src/dataframe/values/nu_dataframe/custom_value.rs b/crates/nu_plugin_polars/src/dataframe/values/nu_dataframe/custom_value.rs index b94f812dac..5913ba56d3 100644 --- a/crates/nu_plugin_polars/src/dataframe/values/nu_dataframe/custom_value.rs +++ b/crates/nu_plugin_polars/src/dataframe/values/nu_dataframe/custom_value.rs @@ -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 { diff --git a/crates/nu_plugin_polars/src/dataframe/values/nu_lazyframe/custom_value.rs b/crates/nu_plugin_polars/src/dataframe/values/nu_lazyframe/custom_value.rs index b3cd9500dd..abce1a9e7b 100644 --- a/crates/nu_plugin_polars/src/dataframe/values/nu_lazyframe/custom_value.rs +++ b/crates/nu_plugin_polars/src/dataframe/values/nu_lazyframe/custom_value.rs @@ -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 { diff --git a/crates/nu_plugin_polars/src/dataframe/values/nu_lazygroupby/custom_value.rs b/crates/nu_plugin_polars/src/dataframe/values/nu_lazygroupby/custom_value.rs index 03327259bb..47cbad1cb4 100644 --- a/crates/nu_plugin_polars/src/dataframe/values/nu_lazygroupby/custom_value.rs +++ b/crates/nu_plugin_polars/src/dataframe/values/nu_lazygroupby/custom_value.rs @@ -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 { diff --git a/crates/nu_plugin_polars/src/dataframe/values/nu_when/custom_value.rs b/crates/nu_plugin_polars/src/dataframe/values/nu_when/custom_value.rs index 5d64bbf011..c8d1303d66 100644 --- a/crates/nu_plugin_polars/src/dataframe/values/nu_when/custom_value.rs +++ b/crates/nu_plugin_polars/src/dataframe/values/nu_when/custom_value.rs @@ -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 {