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 @@
authors = ["The Nushell Project Developers"]
description = "A version incrementer plugin for Nushell"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_inc"
edition = "2021"
edition = "2024"
license = "MIT"
name = "nu_plugin_inc"
version = "0.104.1"
@ -19,4 +19,4 @@ bench = false
nu-plugin = { path = "../nu-plugin", version = "0.104.1" }
nu-protocol = { path = "../nu-protocol", version = "0.104.1", features = ["plugin"] }
semver = "1.0"
semver = "1.0"

View File

@ -1,4 +1,4 @@
use nu_protocol::{ast::CellPath, LabeledError, Span, Value};
use nu_protocol::{LabeledError, Span, Value, ast::CellPath};
use semver::{BuildMetadata, Prerelease, Version};
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
@ -126,8 +126,8 @@ mod tests {
mod semver {
use nu_protocol::{Span, Value};
use crate::inc::SemVerAction;
use crate::Inc;
use crate::inc::SemVerAction;
#[test]
fn major() {

View File

@ -1,4 +1,4 @@
use nu_plugin::{serve_plugin, JsonSerializer};
use nu_plugin::{JsonSerializer, serve_plugin};
use nu_plugin_inc::IncPlugin;
fn main() {

View File

@ -1,6 +1,6 @@
use crate::{inc::SemVerAction, Inc};
use crate::{Inc, inc::SemVerAction};
use nu_plugin::{EngineInterface, EvaluatedCall, Plugin, PluginCommand, SimplePluginCommand};
use nu_protocol::{ast::CellPath, LabeledError, Signature, SyntaxShape, Value};
use nu_protocol::{LabeledError, Signature, SyntaxShape, Value, ast::CellPath};
pub struct IncPlugin;