diff options
| -rw-r--r-- | src/model/channel/guild_channel.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs index 99a8682..5706fa6 100644 --- a/src/model/channel/guild_channel.rs +++ b/src/model/channel/guild_channel.rs @@ -72,12 +72,10 @@ pub struct GuildChannel { /// [`is_nsfw`]: struct.GuildChannel.html#method.is_nsfw // This field can or can not be present sometimes, but if it isn't // default to `false`. - #[serde(default = "nsfw_false")] + #[serde(default)] pub nsfw: bool, } -fn nsfw_false() -> bool { false } - #[cfg(feature = "model")] impl GuildChannel { /// Broadcasts to the channel that the current user is typing. |