Skip to content

Commit

Permalink
Update CI to test with the typesize feature enabled (#2619)
Browse files Browse the repository at this point in the history
This also fixes a small mistake with `ShardInfo::new` being `#[cfg(feature = "client")]`-gated when
cache uses it, but didn't get to use that combination because of `utils` being gated.
  • Loading branch information
GnomedDev authored Nov 24, 2023
1 parent 759c6b4 commit 600159e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
features: model http rustls_backend
- name: chrono
features: chrono
- name: unstable Discord API features
features: default unstable_discord_api
- name: unstable API + typesize
features: default unstable_discord_api typesize
dont-test: true
- name: builder without model
features: builder
Expand Down
1 change: 0 additions & 1 deletion src/model/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ pub struct ShardInfo {
}

impl ShardInfo {
#[cfg(feature = "client")]
#[must_use]
pub(crate) fn new(id: ShardId, total: u32) -> Self {
Self {
Expand Down
1 change: 1 addition & 0 deletions src/model/guild/member.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ impl From<Member> for PartialMember {
}
}

#[cfg_attr(feature = "typesize", derive(typesize::derive::TypeSize))]
#[derive(Clone, Debug, Deserialize, Serialize)]
#[non_exhaustive]
pub struct PartialThreadMember {
Expand Down

0 comments on commit 600159e

Please sign in to comment.