Skip to content

Commit 88078f2

Browse files
committed
NFC: Use item type instead of tt in prefixed_item!.
Make it clearer that `prefixed_item!` works on a single item.
1 parent 4213a0b commit 88078f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/prefixed.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,22 @@ macro_rules! prefixed_item {
7171
{
7272
$attr:ident
7373
$name:ident
74-
{ $( $item:item )+ }
74+
{ $item:item }
7575
} => {
7676
prefixed_item! {
7777
$attr
7878
{ concat!(env!("RING_CORE_PREFIX"), stringify!($name)) }
79-
{ $( $item )+ }
79+
{ $item }
8080
}
8181
};
8282

8383
// Output the item.
8484
{
8585
$attr:ident
8686
{ $prefixed_name:expr }
87-
{ $( $item:item )+ }
87+
{ $item:item }
8888
} => {
8989
#[$attr = $prefixed_name]
90-
$( $item )+
90+
$item
9191
};
9292
}

0 commit comments

Comments
 (0)