From 34a0025aeae103530e394257b46023fe8d502f4b Mon Sep 17 00:00:00 2001 From: Jack Wright Date: Tue, 3 Dec 2024 11:43:20 -0800 Subject: [PATCH] moving cloud stuff to the top level --- crates/nu_plugin_polars/src/{dataframe => }/cloud/aws.rs | 6 ++---- crates/nu_plugin_polars/src/cloud/mod.rs | 1 + crates/nu_plugin_polars/src/dataframe/cloud/mod.rs | 1 - crates/nu_plugin_polars/src/dataframe/mod.rs | 1 - crates/nu_plugin_polars/src/lib.rs | 1 + 5 files changed, 4 insertions(+), 6 deletions(-) rename crates/nu_plugin_polars/src/{dataframe => }/cloud/aws.rs (93%) create mode 100644 crates/nu_plugin_polars/src/cloud/mod.rs delete mode 100644 crates/nu_plugin_polars/src/dataframe/cloud/mod.rs diff --git a/crates/nu_plugin_polars/src/dataframe/cloud/aws.rs b/crates/nu_plugin_polars/src/cloud/aws.rs similarity index 93% rename from crates/nu_plugin_polars/src/dataframe/cloud/aws.rs rename to crates/nu_plugin_polars/src/cloud/aws.rs index 2cf5f3ba5c..c9872d1173 100644 --- a/crates/nu_plugin_polars/src/dataframe/cloud/aws.rs +++ b/crates/nu_plugin_polars/src/cloud/aws.rs @@ -31,8 +31,6 @@ async fn aws_creds(aws_config: &SdkConfig) -> Result, ShellE } } - -async fn aws_cloud_options() ->CloudOptions { - +async fn aws_cloud_options() -> CloudOptions { + CloudOptions:: } - diff --git a/crates/nu_plugin_polars/src/cloud/mod.rs b/crates/nu_plugin_polars/src/cloud/mod.rs new file mode 100644 index 0000000000..827da9e3e5 --- /dev/null +++ b/crates/nu_plugin_polars/src/cloud/mod.rs @@ -0,0 +1 @@ +mod aws; diff --git a/crates/nu_plugin_polars/src/dataframe/cloud/mod.rs b/crates/nu_plugin_polars/src/dataframe/cloud/mod.rs deleted file mode 100644 index 3a15e28f87..0000000000 --- a/crates/nu_plugin_polars/src/dataframe/cloud/mod.rs +++ /dev/null @@ -1 +0,0 @@ -mod aws; diff --git a/crates/nu_plugin_polars/src/dataframe/mod.rs b/crates/nu_plugin_polars/src/dataframe/mod.rs index c55af93dee..6899b8beee 100644 --- a/crates/nu_plugin_polars/src/dataframe/mod.rs +++ b/crates/nu_plugin_polars/src/dataframe/mod.rs @@ -3,7 +3,6 @@ use nu_protocol::{ShellError, Span}; pub mod command; mod utils; pub mod values; -mod cloud; pub fn missing_flag_error(flag: &str, span: Span) -> ShellError { ShellError::GenericError { diff --git a/crates/nu_plugin_polars/src/lib.rs b/crates/nu_plugin_polars/src/lib.rs index eb0a49aa2e..a199cd7f0e 100644 --- a/crates/nu_plugin_polars/src/lib.rs +++ b/crates/nu_plugin_polars/src/lib.rs @@ -14,6 +14,7 @@ use log::debug; use nu_plugin::{EngineInterface, Plugin, PluginCommand}; mod cache; +mod cloud; pub mod dataframe; pub use dataframe::*; use nu_protocol::{ast::Operator, CustomValue, LabeledError, ShellError, Span, Spanned, Value};