Skip to content

Commit

Permalink
Fix declare-component! (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
llehtahw committed Jan 10, 2024
1 parent 56cfb49 commit 56da633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pub trait ComponentPut<T> {

#[macro_export]
macro_rules! declare_component {
{$($vis:vis $name:ident (impl $($tts:tt)+);)*} => {
$($vis struct $name<_OBJ>(_OBJ) where _OBJ: $($tts)+;)*
{$($(#[$m:meta])? $vis:vis $name:ident (impl $($tts:tt)+);)*} => {
$($(#[$m])? $vis struct $name<_OBJ>(pub _OBJ) where _OBJ: $($tts)+;)*
};
}

Expand Down

0 comments on commit 56da633

Please sign in to comment.