From 211d9c685cf653d374f835e513dbaf140d4d8fec Mon Sep 17 00:00:00 2001 From: Ian Manske Date: Sat, 13 Apr 2024 16:19:32 +0000 Subject: [PATCH] Fix clippy lint (#12504) Just fixes a clippy lint. --- crates/nu_plugin_polars/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/nu_plugin_polars/src/lib.rs b/crates/nu_plugin_polars/src/lib.rs index 03685505b7..e95372c54a 100644 --- a/crates/nu_plugin_polars/src/lib.rs +++ b/crates/nu_plugin_polars/src/lib.rs @@ -183,8 +183,11 @@ pub mod test { use nu_protocol::{ShellError, Span}; pub fn test_polars_plugin_command(command: &impl PluginCommand) -> Result<(), ShellError> { - let mut plugin = PolarsPlugin::default(); - plugin.disable_cache_drop = true; + let plugin = PolarsPlugin { + disable_cache_drop: true, + ..PolarsPlugin::default() + }; + let examples = command.examples(); // we need to cache values in the examples