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

@ -72,10 +72,10 @@ enum IntOrFloat {
impl IntOrFloat {
pub(crate) fn add_i64(&mut self, n: i64) {
match self {
IntOrFloat::Int(ref mut v) => {
IntOrFloat::Int(v) => {
*v += n;
}
IntOrFloat::Float(ref mut v) => {
IntOrFloat::Float(v) => {
*v += n as f64;
}
}
@ -86,7 +86,7 @@ impl IntOrFloat {
IntOrFloat::Int(v) => {
*self = IntOrFloat::Float(*v as f64 + n);
}
IntOrFloat::Float(ref mut v) => {
IntOrFloat::Float(v) => {
*v += n;
}
}

View File

@ -1,4 +1,4 @@
use nu_plugin::{serve_plugin, MsgPackSerializer};
use nu_plugin::{MsgPackSerializer, serve_plugin};
use nu_plugin_example::ExamplePlugin;
fn main() {