update rust edition of androscalpel_serializer
This commit is contained in:
parent
f5a3015e1f
commit
d4ccc73362
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "androscalpel_serializer"
|
name = "androscalpel_serializer"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
androscalpel_serializer_derive = { path = "../androscalpel_serializer_derive" }
|
androscalpel_serializer_derive = { path = "../androscalpel_serializer_derive" }
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ pub struct Uleb128p1(pub u32);
|
||||||
|
|
||||||
impl Sleb128 {
|
impl Sleb128 {
|
||||||
fn get_serialized_bytes(&self) -> Vec<u8> {
|
fn get_serialized_bytes(&self) -> Vec<u8> {
|
||||||
let Self(mut val) = self;
|
let &Self(mut val) = self;
|
||||||
let mut bytes = vec![];
|
let mut bytes = vec![];
|
||||||
loop {
|
loop {
|
||||||
let byte = val as u8 & 0b0111_1111;
|
let byte = val as u8 & 0b0111_1111;
|
||||||
|
|
@ -81,7 +81,7 @@ impl Serializable for Sleb128 {
|
||||||
|
|
||||||
impl Uleb128 {
|
impl Uleb128 {
|
||||||
fn get_serialized_bytes(&self) -> Vec<u8> {
|
fn get_serialized_bytes(&self) -> Vec<u8> {
|
||||||
let Self(mut val) = self;
|
let &Self(mut val) = self;
|
||||||
let mut bytes = vec![];
|
let mut bytes = vec![];
|
||||||
loop {
|
loop {
|
||||||
let byte = val as u8 & 0b0111_1111;
|
let byte = val as u8 & 0b0111_1111;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue