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
Release builds have been broken for a long time, I should fix it one day…
It's caused by the fact that we use #[cfg(debug_assertions)] for a parameter in the invite_member route, and Rocket's #[post(…)] macro doesn't expect it. I was hoping it would be found and fixed by the Rocket team, but seems like they never noticed it.
One day I should take some time to create a minimal reproducible example for them or just remove #[cfg(debug_assertions)] as a temporary workaround.
Compiling prose-pod-api v0.2.0 (/project)
error[E0061]: this function takes 7 arguments but 8 arguments were supplied
--> src/v1/invitations/routes.rs:60:21
|
60 | pub(super) async fn invite_member<'r>(
| ^^^^^^^^^^^^^
...
68 | #[cfg(debug_assertions)] invitation_service: LazyGuard<UnauthenticatedInvitationService<'r>>,
| ------------------ unexpected argument of type `LazyGuard<unauthenticated_invitation_service::UnauthenticatedInvitationService<'_>>`
|
note: function defined here
--> src/v1/invitations/routes.rs:60:21
|
60 | pub(super) async fn invite_member<'r>(
| ^^^^^^^^^^^^^
61 | conn: Connection<'r, Db>,
| ------------------------
62 | app_config: &State<AppConfig>,
| -----------------------------
63 | server_config: LazyGuard<ServerConfig>,
| --------------------------------------
64 | jid: LazyGuard<BareJid>,
| -----------------------
65 | notifier: LazyGuard<Notifier<'r>>,
| ---------------------------------
66 | invitation_controller: LazyGuard<InvitationController<'r>>,
| ----------------------------------------------------------
67 | req: Json<InviteMemberRequest>,
| ------------------------------
For more information about this error, try `rustc --explain E0061`.
error: could not compile `prose-pod-api` (lib) due to 1 previous error
The text was updated successfully, but these errors were encountered:
Release builds have been broken for a long time, I should fix it one day…
It's caused by the fact that we use
#[cfg(debug_assertions)]
for a parameter in theinvite_member
route, and Rocket's#[post(…)]
macro doesn't expect it. I was hoping it would be found and fixed by the Rocket team, but seems like they never noticed it.One day I should take some time to create a minimal reproducible example for them or just remove
#[cfg(debug_assertions)]
as a temporary workaround.The text was updated successfully, but these errors were encountered: