Rust 1.85, edition=2024 (#15741)

This commit is contained in:
Jack Wright
2025-05-13 07:49:30 -07:00
committed by GitHub
parent 1a0986903f
commit c2ac8f730e
793 changed files with 4276 additions and 3687 deletions

View File

@ -1,7 +1,7 @@
[package]
authors = ["The Nushell Project Developers"]
description = "The foundation tools to build Nushell commands."
edition = "2021"
edition = "2024"
license = "MIT"
name = "nu-cmd-base"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-cmd-base"
@ -21,4 +21,4 @@ nu-protocol = { path = "../nu-protocol", version = "0.104.1", default-features =
indexmap = { workspace = true }
miette = { workspace = true }
[dev-dependencies]
[dev-dependencies]

View File

@ -1,4 +1,4 @@
use indexmap::{indexset, IndexSet};
use indexmap::{IndexSet, indexset};
use nu_protocol::Value;
pub fn merge_descriptors(values: &[Value]) -> Vec<String> {

View File

@ -2,10 +2,10 @@ use miette::Result;
use nu_engine::{eval_block, eval_block_with_early_return};
use nu_parser::parse;
use nu_protocol::{
PipelineData, PositionalArg, ShellError, Span, Type, Value, VarId,
cli_error::{report_parse_error, report_shell_error},
debugger::WithoutDebug,
engine::{Closure, EngineState, Stack, StateWorkingSet},
PipelineData, PositionalArg, ShellError, Span, Type, Value, VarId,
};
use std::{collections::HashMap, sync::Arc};

View File

@ -1,4 +1,4 @@
use nu_protocol::{ast::CellPath, PipelineData, ShellError, Signals, Span, Value};
use nu_protocol::{PipelineData, ShellError, Signals, Span, Value, ast::CellPath};
use std::sync::Arc;
pub trait CmdArgument {

View File

@ -1,6 +1,6 @@
use nu_protocol::{
engine::{EngineState, Stack},
Range, ShellError, Span, Value,
engine::{EngineState, Stack},
};
use std::ops::Bound;