Add a TODO about combining several macros and patterns

This commit is contained in:
Nick Mathewson 2023-02-16 08:25:12 -05:00
parent b4e48b0695
commit 14417dc098
1 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,10 @@ impl<ID> UnrecognizedExt<ID> {
}
/// Declare an Extension group that takes a given identifier.
//
// TODO: This is rather similar to restrict_msg(), isn't it? Also, We use this
// pattern of (number, (cmd, length, body)*) a few of times in Tor outside the
// hs module. Perhaps we can extend and unify our code here...
macro_rules! decl_extension_group {
{
$( #[$meta:meta] )*