Skip to content

Commit 584e657

Browse files
fix: add visibility to infallible type alias (#51)
1 parent adb204f commit 584e657

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/fortifier-macros/src/validate.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,13 @@ impl<'a> ToTokens for Validate<'a> {
116116
{
117117
(r#type, definition)
118118
} else {
119+
let visibility = &self.visibility;
119120
let error_ident = format_error_ident(self.ident);
120121

121122
(
122123
error_ident.to_token_stream(),
123124
Some(quote! {
124-
type #error_ident = ::std::convert::Infallible;
125+
#visibility type #error_ident = ::std::convert::Infallible;
125126
}),
126127
)
127128
};

0 commit comments

Comments
 (0)