S0149: effect requires module import
Generated from rellum-diagnostics/src/db.rs.
Explanation
Effects outside the implicit core surface must be brought into scope with a use declaration for their module. This keeps subsystem effects explicit and avoids accidental name collisions.
Common causes
- calling a net effect without
use net - declaring an ingress event from a module that has not been imported
- using a request effect from a module before the module is imported
Canonical fixes
- add the required use declaration at the top of the file
Before:
server ~ request net::listen!(8080)
After:
use net
server ~ request net::listen!(8080)
Code example
server ~ request net::listen!(8080)