From d4ccc733622616e099c010d2950921033f1c4c56 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Fri, 18 Apr 2025 11:08:22 +0200 Subject: [PATCH] update rust edition of androscalpel_serializer --- androscalpel_serializer/Cargo.toml | 2 +- androscalpel_serializer/src/core/leb.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/androscalpel_serializer/Cargo.toml b/androscalpel_serializer/Cargo.toml index 5f8a136..6decc72 100644 --- a/androscalpel_serializer/Cargo.toml +++ b/androscalpel_serializer/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "androscalpel_serializer" version = "0.1.0" -edition = "2021" +edition = "2024" [dependencies] androscalpel_serializer_derive = { path = "../androscalpel_serializer_derive" } diff --git a/androscalpel_serializer/src/core/leb.rs b/androscalpel_serializer/src/core/leb.rs index eff1081..ea58119 100644 --- a/androscalpel_serializer/src/core/leb.rs +++ b/androscalpel_serializer/src/core/leb.rs @@ -19,7 +19,7 @@ pub struct Uleb128p1(pub u32); impl Sleb128 { fn get_serialized_bytes(&self) -> Vec { - let Self(mut val) = self; + let &Self(mut val) = self; let mut bytes = vec![]; loop { let byte = val as u8 & 0b0111_1111; @@ -81,7 +81,7 @@ impl Serializable for Sleb128 { impl Uleb128 { fn get_serialized_bytes(&self) -> Vec { - let Self(mut val) = self; + let &Self(mut val) = self; let mut bytes = vec![]; loop { let byte = val as u8 & 0b0111_1111;