You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By now the only correct implementation of a module is having a struct and a single implementation block. If for some reason, a developer would like to have a module with more than one implementation block marked as odra::module, compilation will fail.
We need to come up with a solution that gently informs a user that he should put all the entry points in a single impl block or allow having multiple blocks.
The text was updated successfully, but these errors were encountered:
I'll go first with a possible solution. The most straightforward approach is to wrap up the whole module with mod, then the macro can process struct and all impl blocks at once.
By now the only correct implementation of a module is having a struct and a single implementation block. If for some reason, a developer would like to have a module with more than one implementation block marked as
odra::module
, compilation will fail.We need to come up with a solution that gently informs a user that he should put all the entry points in a single impl block or allow having multiple blocks.
The text was updated successfully, but these errors were encountered: