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
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
This commit is contained in:
Devyn Cairns 2024-03-09 15:55:46 -08:00 committed by GitHub
parent bc19be25b1
commit 1d14d29408
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,8 +13,8 @@ use nu_protocol::{
}, },
engine::{StateWorkingSet, DEFAULT_OVERLAY_NAME}, engine::{StateWorkingSet, DEFAULT_OVERLAY_NAME},
eval_const::eval_constant, eval_const::eval_constant,
span, Alias, BlockId, DeclId, Exportable, IntoSpanned, Module, ModuleId, ParseError, span, Alias, BlockId, DeclId, Exportable, Module, ModuleId, ParseError, PositionalArg,
PositionalArg, ResolvedImportPattern, Span, Spanned, SyntaxShape, Type, Value, VarId, ResolvedImportPattern, Span, Spanned, SyntaxShape, Type, Value, VarId,
}; };
use std::collections::{HashMap, HashSet}; use std::collections::{HashMap, HashSet};
use std::path::{Path, PathBuf}; 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 std::sync::Arc;
use nu_plugin::{get_signature, PersistentPlugin, PluginDeclaration}; 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(); let cwd = working_set.get_cwd();