Skip to content

Commit

Permalink
scroll_derive: add PR link and note in macro_rules test
Browse files Browse the repository at this point in the history
  • Loading branch information
m4b committed Oct 9, 2020
1 parent e91f6ee commit 4e984aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scroll_derive/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use scroll::ctx::SizeWith;

macro_rules! test {
( struct $name:ident { $( $field:ident: $t:ty, )* } ) => {
// check we can exist inside a macro_rules
// https://github.com/m4b/scroll/pull/75
#[derive(Pread)]
pub struct $name {
$( pub $field: $t, )*
Expand Down

0 comments on commit 4e984aa

Please sign in to comment.