From 1d14d294087b93c4269fe0762fbd02ecba677c2d Mon Sep 17 00:00:00 2001 From: Devyn Cairns Date: Sat, 9 Mar 2024 15:55:46 -0800 Subject: [PATCH] Fix unused IntoSpanned warning in nu_parser::parse_keywords when 'plugin' feature not enabled (#12144) # Description There is a warning about unused `IntoSpanned` currently when running `cargo check -p nu-parser`, introduced accidentally by #12064. This fixes that. # User-Facing Changes None # Tests + Formatting - :green_circle: `toolkit fmt` - :green_circle: `toolkit clippy` - :green_circle: `toolkit test` - :green_circle: `toolkit test stdlib` --- crates/nu-parser/src/parse_keywords.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/nu-parser/src/parse_keywords.rs b/crates/nu-parser/src/parse_keywords.rs index ff11e57854..deb6be558b 100644 --- a/crates/nu-parser/src/parse_keywords.rs +++ b/crates/nu-parser/src/parse_keywords.rs @@ -13,8 +13,8 @@ use nu_protocol::{ }, engine::{StateWorkingSet, DEFAULT_OVERLAY_NAME}, eval_const::eval_constant, - span, Alias, BlockId, DeclId, Exportable, IntoSpanned, Module, ModuleId, ParseError, - PositionalArg, ResolvedImportPattern, Span, Spanned, SyntaxShape, Type, Value, VarId, + span, Alias, BlockId, DeclId, Exportable, Module, ModuleId, ParseError, PositionalArg, + ResolvedImportPattern, Span, Spanned, SyntaxShape, Type, Value, VarId, }; use std::collections::{HashMap, HashSet}; use std::path::{Path, PathBuf}; @@ -3546,7 +3546,9 @@ pub fn parse_register(working_set: &mut StateWorkingSet, spans: &[Span]) -> Pipe use std::sync::Arc; use nu_plugin::{get_signature, PersistentPlugin, PluginDeclaration}; - use nu_protocol::{engine::Stack, PluginIdentity, PluginSignature, RegisteredPlugin}; + use nu_protocol::{ + engine::Stack, IntoSpanned, PluginIdentity, PluginSignature, RegisteredPlugin, + }; let cwd = working_set.get_cwd();