File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ edition = "2021"
1515byteorder = { version = " 1.4.2" , default-features = false }
1616num-traits = { version = " 0.2.14" , default-features = false }
1717# This is macro_only ;)
18- paste = " 1.0 "
18+ pastey = " 0.1 "
1919
2020[features ]
2121default = [" std" ]
Original file line number Diff line number Diff 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
149149macro_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" ) ]
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments