mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 03:31:52 +02:00
Rust 1.85, edition=2024 (#15741)
This commit is contained in:
@ -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"
|
||||
|
@ -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() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
use nu_plugin::{serve_plugin, JsonSerializer};
|
||||
use nu_plugin::{JsonSerializer, serve_plugin};
|
||||
use nu_plugin_inc::IncPlugin;
|
||||
|
||||
fn main() {
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user