Fix clippy lint (#12504)

Just fixes a clippy lint.
This commit is contained in:
Ian Manske 2024-04-13 16:19:32 +00:00 committed by GitHub
parent 0110345755
commit 211d9c685c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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