move type alias Shared<T> from src/gateway/mod.rs (feature locked behind client) to src/types/mod.rs, to fix compiler errors when building without the client feature:
error[E0432]: unresolved import `crate::gateway`
--> src/types/entities/mod.rs:30:12
|
30 | use crate::gateway::Shared;
| ^^^^^^^ could not find `gateway` in the crate root
error[E0432]: unresolved import crate::gateway
--> src/types/entities/application.rs:10:12
|
10 | use crate::gateway::Shared;
| ^^^^^^^ could not find gateway in the crate root
error[E0432]: unresolved import crate::gateway
--> src/types/entities/audit_log.rs:7:12
|
7 | use crate::gateway::Shared;
| ^^^^^^^ could not find gateway in the crate root
...
This pr includes various fixes:
Shared<T>
fromsrc/gateway/mod.rs
(feature locked behindclient
) tosrc/types/mod.rs
, to fix compiler errors when building without theclient
feature:error[E0432]: unresolved import
crate::gateway
--> src/types/entities/application.rs:10:12 | 10 | use crate::gateway::Shared; | ^^^^^^^ could not findgateway
in the crate rooterror[E0432]: unresolved import
crate::gateway
--> src/types/entities/audit_log.rs:7:12 | 7 | use crate::gateway::Shared; | ^^^^^^^ could not findgateway
in the crate root ...