We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb204f commit 584e657Copy full SHA for 584e657
1 file changed
packages/fortifier-macros/src/validate.rs
@@ -116,12 +116,13 @@ impl<'a> ToTokens for Validate<'a> {
116
{
117
(r#type, definition)
118
} else {
119
+ let visibility = &self.visibility;
120
let error_ident = format_error_ident(self.ident);
121
122
(
123
error_ident.to_token_stream(),
124
Some(quote! {
- type #error_ident = ::std::convert::Infallible;
125
+ #visibility type #error_ident = ::std::convert::Infallible;
126
}),
127
)
128
};
0 commit comments