From c798cde966a5903622dbd3b4ae627074249b4833 Mon Sep 17 00:00:00 2001 From: Ava Affine Date: Thu, 17 Jul 2025 15:49:50 -0700 Subject: [PATCH] normalize edition to 2024 Signed-off-by: Ava Affine --- decomposer/Cargo.toml | 2 +- mycelium/Cargo.toml | 2 +- mycelium/src/lexer.rs | 4 ++-- mycelium/src/lib.rs | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/decomposer/Cargo.toml b/decomposer/Cargo.toml index 60b0f8e..071e041 100644 --- a/decomposer/Cargo.toml +++ b/decomposer/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "decomposer" version = "0.1.0" -edition = "2021" +edition = "2024" authors = ["Ava Affine "] [dependencies] diff --git a/mycelium/Cargo.toml b/mycelium/Cargo.toml index 7bc4e79..9370cd3 100644 --- a/mycelium/Cargo.toml +++ b/mycelium/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mycelium" version = "0.1.0" -edition = "2021" +edition = "2024" [dependencies] num = { version = "0.4.3", features = ["alloc"] } diff --git a/mycelium/src/lexer.rs b/mycelium/src/lexer.rs index 431054c..c6266d3 100644 --- a/mycelium/src/lexer.rs +++ b/mycelium/src/lexer.rs @@ -187,7 +187,7 @@ impl Iterator for Lexer { } let res = self.seek_next_token(); - if let Err(ref e) = res { + if let Err(e) = &res { self.has_error_state = Some(e.clone()); } @@ -617,7 +617,7 @@ impl Lexer { } if let Some(ref res) = output { - if let Err(ref e) = res { + if let Err(e) = &res { self.has_error_state = Some(e.clone()); } } diff --git a/mycelium/src/lib.rs b/mycelium/src/lib.rs index b68beca..e6896e7 100644 --- a/mycelium/src/lib.rs +++ b/mycelium/src/lib.rs @@ -16,7 +16,6 @@ */ #![cfg_attr(not(test), no_std)] -#![feature(let_chains)] #![feature(iter_collect_into)] #![feature(if_let_guard)] #![feature(core_float_math)]