Skip to content

Commit f6eb178

Browse files
committed
fix(rmp): use pastey instead of paste
Closes #365
1 parent 09eade5 commit f6eb178

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rmp/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ edition = "2021"
1515
byteorder = { version = "1.4.2", default-features = false }
1616
num-traits = { version = "0.2.14", default-features = false }
1717
# This is macro_only ;)
18-
paste = "1.0"
18+
pastey = "0.1"
1919

2020
[features]
2121
default = ["std"]

rmp/src/decode/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ macro_rules! read_byteorder_utils {
6262
const SIZE: usize = core::mem::size_of::<$tp>();
6363
let mut buf: [u8; SIZE] = [0u8; SIZE];
6464
self.read_exact_buf(&mut buf).map_err(ValueReadError::InvalidDataRead)?;
65-
Ok(paste::paste! {
65+
Ok(pastey::paste! {
6666
<byteorder::BigEndian as byteorder::ByteOrder>::[<read_ $tp>](&mut buf)
6767
})
6868
}
@@ -148,7 +148,7 @@ pub trait RmpRead: sealed::Sealed {
148148

149149
macro_rules! wrap_data_funcs_for_compatibility {
150150
($($tp:ident),* $(,)?) => {
151-
$(paste::paste! {
151+
$(pastey::paste! {
152152
#[cfg(feature = "std")]
153153
#[doc(hidden)]
154154
#[deprecated(note = "internal function. rmpv & rmp-serde need to switch to RmpRead")]

rmp/src/encode/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ macro_rules! write_byteorder_utils {
121121
fn $name(&mut self, val: $tp) -> Result<(), DataWriteError<Self::Error>> where Self: Sized {
122122
const SIZE: usize = core::mem::size_of::<$tp>();
123123
let mut buf: [u8; SIZE] = [0u8; SIZE];
124-
paste::paste! {
124+
pastey::paste! {
125125
<byteorder::BigEndian as byteorder::ByteOrder>::[<write_ $tp>](&mut buf, val);
126126
}
127127
self.write_bytes(&buf).map_err(DataWriteError)

0 commit comments

Comments
 (0)