File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ edition = "2021"
15
15
byteorder = { version = " 1.4.2" , default-features = false }
16
16
num-traits = { version = " 0.2.14" , default-features = false }
17
17
# This is macro_only ;)
18
- paste = " 1.0 "
18
+ pastey = " 0.1 "
19
19
20
20
[features ]
21
21
default = [" std" ]
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ macro_rules! read_byteorder_utils {
62
62
const SIZE : usize = core:: mem:: size_of:: <$tp>( ) ;
63
63
let mut buf: [ u8 ; SIZE ] = [ 0u8 ; SIZE ] ;
64
64
self . read_exact_buf( & mut buf) . map_err( ValueReadError :: InvalidDataRead ) ?;
65
- Ok ( paste :: paste! {
65
+ Ok ( pastey :: paste! {
66
66
<byteorder:: BigEndian as byteorder:: ByteOrder >:: [ <read_ $tp>] ( & mut buf)
67
67
} )
68
68
}
@@ -148,7 +148,7 @@ pub trait RmpRead: sealed::Sealed {
148
148
149
149
macro_rules! wrap_data_funcs_for_compatibility {
150
150
( $( $tp: ident) ,* $( , ) ?) => {
151
- $( paste :: paste! {
151
+ $( pastey :: paste! {
152
152
#[ cfg( feature = "std" ) ]
153
153
#[ doc( hidden) ]
154
154
#[ deprecated( note = "internal function. rmpv & rmp-serde need to switch to RmpRead" ) ]
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ macro_rules! write_byteorder_utils {
121
121
fn $name( & mut self , val: $tp) -> Result <( ) , DataWriteError <Self :: Error >> where Self : Sized {
122
122
const SIZE : usize = core:: mem:: size_of:: <$tp>( ) ;
123
123
let mut buf: [ u8 ; SIZE ] = [ 0u8 ; SIZE ] ;
124
- paste :: paste! {
124
+ pastey :: paste! {
125
125
<byteorder:: BigEndian as byteorder:: ByteOrder >:: [ <write_ $tp>] ( & mut buf, val) ;
126
126
}
127
127
self . write_bytes( & buf) . map_err( DataWriteError )
You can’t perform that action at this time.
0 commit comments