tor-cell: Re-export paste so restrict_msg can work outside the crate.

This commit is contained in:
Nick Mathewson 2023-02-08 08:26:54 -05:00
parent 0633f17131
commit 037d1658b2
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
//! Declare a restricted variant of our message types.
/// Re-export tor_bytes here, so that the macro can use it.
pub use tor_bytes;
/// Re-export tor_bytes and paste here, so that the macro can use it.
pub use {paste, tor_bytes};
/// Declare a restricted version of
/// [`AnyRelayMsg`](crate::relaycell::msg::AnyRelayMsg) or
@ -103,7 +103,7 @@ macro_rules! restricted_msg {
$(,)?
}
} => {
paste::paste!{
$crate::restrict::paste::paste!{
$(#[$meta])*
$v enum $name {
$(