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

@ -2,7 +2,7 @@
name = "nu_plugin_custom_values"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_custom_values"
version = "0.1.0"
edition = "2021"
edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
@ -16,4 +16,4 @@ serde = { workspace = true }
typetag = "0.2"
[dev-dependencies]
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.104.1" }
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.104.1" }

View File

@ -1,6 +1,6 @@
use nu_protocol::{
ast::{self, Math, Operator},
CustomValue, ShellError, Span, Type, Value,
ast::{self, Math, Operator},
};
use serde::{Deserialize, Serialize};
use std::cmp::Ordering;

View File

@ -1,7 +1,7 @@
use crate::CustomValuePlugin;
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
use nu_protocol::{
record, Category, CustomValue, LabeledError, ShellError, Signature, Span, SyntaxShape, Value,
Category, CustomValue, LabeledError, ShellError, Signature, Span, SyntaxShape, Value, record,
};
use serde::{Deserialize, Serialize};

View File

@ -1,4 +1,4 @@
use crate::{cool_custom_value::CoolCustomValue, CustomValuePlugin};
use crate::{CustomValuePlugin, cool_custom_value::CoolCustomValue};
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
use nu_protocol::{Category, Example, LabeledError, Signature, Span, Value};

View File

@ -1,4 +1,4 @@
use crate::{second_custom_value::SecondCustomValue, CustomValuePlugin};
use crate::{CustomValuePlugin, second_custom_value::SecondCustomValue};
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
use nu_protocol::{Category, Example, LabeledError, Signature, Span, SyntaxShape, Value};

View File

@ -1,7 +1,7 @@
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
use nu_protocol::{LabeledError, ShellError, Signature, Type, Value};
use crate::{handle_custom_value::HandleCustomValue, CustomValuePlugin};
use crate::{CustomValuePlugin, handle_custom_value::HandleCustomValue};
pub struct HandleGet;

View File

@ -3,7 +3,7 @@ use std::sync::atomic;
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
use nu_protocol::{LabeledError, Signature, Type, Value};
use crate::{handle_custom_value::HandleCustomValue, CustomValuePlugin};
use crate::{CustomValuePlugin, handle_custom_value::HandleCustomValue};
pub struct HandleMake;

View File

@ -2,10 +2,10 @@ use std::sync::atomic;
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
use nu_protocol::{
engine::Closure, LabeledError, ShellError, Signature, Spanned, SyntaxShape, Type, Value,
LabeledError, ShellError, Signature, Spanned, SyntaxShape, Type, Value, engine::Closure,
};
use crate::{handle_custom_value::HandleCustomValue, CustomValuePlugin};
use crate::{CustomValuePlugin, handle_custom_value::HandleCustomValue};
pub struct HandleUpdate;

View File

@ -1,10 +1,10 @@
use std::{
collections::BTreeMap,
sync::{atomic::AtomicU64, Mutex},
sync::{Mutex, atomic::AtomicU64},
};
use handle_custom_value::HandleCustomValue;
use nu_plugin::{serve_plugin, EngineInterface, MsgPackSerializer, Plugin, PluginCommand};
use nu_plugin::{EngineInterface, MsgPackSerializer, Plugin, PluginCommand, serve_plugin};
mod cool_custom_value;
mod handle_custom_value;

View File

@ -1,5 +1,5 @@
use crate::{
cool_custom_value::CoolCustomValue, second_custom_value::SecondCustomValue, CustomValuePlugin,
CustomValuePlugin, cool_custom_value::CoolCustomValue, second_custom_value::SecondCustomValue,
};
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
use nu_protocol::{Category, Example, LabeledError, ShellError, Signature, Span, Value};

View File

@ -1,4 +1,4 @@
use crate::{update::Update, CustomValuePlugin};
use crate::{CustomValuePlugin, update::Update};
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
use nu_protocol::{Category, LabeledError, Signature, SyntaxShape, Value};