Skip to content

Commit d29cbae

Browse files
committed
fix: derive should use absolut path for Unpackable
1 parent 30d4ad4 commit d29cbae

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

msgpacker-bench/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "msgpacker-bench"
33
version = "0.0.0"
4-
authors = ["Victor Lopez <victor@codx.io>"]
4+
authors = ["Victor Lopez <vhrlopes@gmail.com>"]
55
edition = "2021"
66
repository = "https://github.com/codx-dev/msgpacker"
77
description = "Benchmarks for msgpacker."

msgpacker-derive/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "msgpacker-derive"
3-
version = "0.3.1"
4-
authors = ["Victor Lopez <victor@codx.io>"]
3+
version = "0.3.2"
4+
authors = ["Victor Lopez <vhrlopes@gmail.com>"]
55
categories = ["compression", "encoding", "parser-implementations"]
66
edition = "2021"
77
keywords = ["messagepack", "msgpack"]

msgpacker-derive/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,15 +373,15 @@ fn impl_fields_enum(name: Ident, v: Punctuated<Variant, Token![,]>) -> impl Into
373373
blk_unpack_fields.push(parse_quote! { #field });
374374

375375
blk_unpack.stmts.push(parse_quote! {
376-
let #field = Unpackable::unpack(buf).map(|(nv, t)| {
376+
let #field =::msgpacker::Unpackable::unpack(buf).map(|(nv, t)| {
377377
n += nv;
378378
buf = &buf[nv..];
379379
t
380380
})?;
381381
});
382382

383383
blk_unpack_iter.stmts.push(parse_quote! {
384-
let #field = Unpackable::unpack_iter(bytes.by_ref()).map(|(nv, t)| {
384+
let #field =::msgpacker::Unpackable::unpack_iter(bytes.by_ref()).map(|(nv, t)| {
385385
n += nv;
386386
t
387387
})?;
@@ -455,15 +455,15 @@ fn impl_fields_enum(name: Ident, v: Punctuated<Variant, Token![,]>) -> impl Into
455455
});
456456

457457
blk_unpack.stmts.push(parse_quote! {
458-
let #ti = Unpackable::unpack(buf).map(|(nv, t)| {
458+
let #ti =::msgpacker::Unpackable::unpack(buf).map(|(nv, t)| {
459459
n += nv;
460460
buf = &buf[nv..];
461461
t
462462
})?;
463463
});
464464

465465
blk_unpack_iter.stmts.push(parse_quote! {
466-
let #ti = Unpackable::unpack_iter(bytes.by_ref()).map(|(nv, t)| {
466+
let #ti =::msgpacker::Unpackable::unpack_iter(bytes.by_ref()).map(|(nv, t)| {
467467
n += nv;
468468
t
469469
})?;

msgpacker/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "msgpacker"
33
version = "0.4.8"
4-
authors = ["Victor Lopez <victor@codx.io>"]
4+
authors = ["Victor Lopez <vhrlopes@gmail.com>"]
55
categories = ["compression", "encoding", "parser-implementations"]
66
edition = "2021"
77
keywords = ["messagepack", "msgpack"]

0 commit comments

Comments
 (0)