Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Valdemar Erk <valdemar@erk.io>
  • Loading branch information
Erk- committed May 27, 2020
1 parent 1b18d5e commit eb5e102
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
10 changes: 3 additions & 7 deletions http/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,7 @@ impl Client {
UpdateGuildChannelPositions::new(self, guild_id, channel_positions)
}

#[deprecated(
note = "Please use the guild_widget method instead."
)]
#[deprecated(note = "Please use the guild_widget method instead.")]
pub fn guild_embed(&self, guild_id: GuildId) -> GetGuildWidget<'_> {
GetGuildWidget::new(self, guild_id)
}
Expand All @@ -435,17 +433,15 @@ impl Client {
GetGuildWidget::new(self, guild_id)
}

#[deprecated(
note = "Please use the update_guild_widget method instead."
)]
#[deprecated(note = "Please use the update_guild_widget method instead.")]
pub fn update_guild_embed(&self, guild_id: GuildId) -> UpdateGuildWidget<'_> {
UpdateGuildWidget::new(self, guild_id)
}

pub fn update_guild_widget(&self, guild_id: GuildId) -> UpdateGuildWidget<'_> {
UpdateGuildWidget::new(self, guild_id)
}

pub fn guild_integrations(&self, guild_id: GuildId) -> GetGuildIntegrations<'_> {
GetGuildIntegrations::new(self, guild_id)
}
Expand Down
10 changes: 5 additions & 5 deletions http/src/request/guild/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ pub mod role;
mod delete_guild;
mod get_guild;
mod get_guild_channels;
mod get_guild_widget;
mod get_guild_invites;
mod get_guild_preview;
mod get_guild_vanity_url;
mod get_guild_voice_regions;
mod get_guild_webhooks;
mod get_guild_widget;
mod update_current_user_nick;
mod update_guild;
mod update_guild_channel_positions;
Expand All @@ -26,10 +26,10 @@ mod update_guild_widget;
pub use self::{
create_guild::CreateGuild, create_guild_channel::CreateGuildChannel,
create_guild_prune::CreateGuildPrune, delete_guild::DeleteGuild, get_audit_log::GetAuditLog,
get_guild::GetGuild, get_guild_channels::GetGuildChannels, get_guild_widget::GetGuildWidget,
get_guild_invites::GetGuildInvites, get_guild_preview::GetGuildPreview,
get_guild_prune_count::GetGuildPruneCount, get_guild_vanity_url::GetGuildVanityUrl,
get_guild_voice_regions::GetGuildVoiceRegions, get_guild_webhooks::GetGuildWebhooks,
get_guild::GetGuild, get_guild_channels::GetGuildChannels, get_guild_invites::GetGuildInvites,
get_guild_preview::GetGuildPreview, get_guild_prune_count::GetGuildPruneCount,
get_guild_vanity_url::GetGuildVanityUrl, get_guild_voice_regions::GetGuildVoiceRegions,
get_guild_webhooks::GetGuildWebhooks, get_guild_widget::GetGuildWidget,
update_current_user_nick::UpdateCurrentUserNick, update_guild::UpdateGuild,
update_guild_channel_positions::UpdateGuildChannelPositions,
update_guild_widget::UpdateGuildWidget,
Expand Down
18 changes: 9 additions & 9 deletions model/src/guild/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pub mod audit_log;

mod ban;
mod default_message_notification_level;
mod widget;
mod emoji;
mod explicit_content_filter;
mod info;
Expand All @@ -21,16 +20,17 @@ mod status;
mod system_channel_flags;
mod unavailable_guild;
mod verification_level;
mod widget;

pub use self::{
ban::Ban, default_message_notification_level::DefaultMessageNotificationLevel,
widget::GuildWidget, emoji::Emoji, explicit_content_filter::ExplicitContentFilter,
info::GuildInfo, integration::GuildIntegration, integration_account::IntegrationAccount,
member::Member, mfa_level::MfaLevel, partial_guild::PartialGuild,
partial_member::PartialMember, permissions::Permissions, premium_tier::PremiumTier,
preview::GuildPreview, prune::GuildPrune, role::Role, status::GuildStatus,
system_channel_flags::SystemChannelFlags, unavailable_guild::UnavailableGuild,
verification_level::VerificationLevel,
ban::Ban, default_message_notification_level::DefaultMessageNotificationLevel, emoji::Emoji,
explicit_content_filter::ExplicitContentFilter, info::GuildInfo, integration::GuildIntegration,
integration_account::IntegrationAccount, member::Member, mfa_level::MfaLevel,
partial_guild::PartialGuild, partial_member::PartialMember, permissions::Permissions,
premium_tier::PremiumTier, preview::GuildPreview, prune::GuildPrune, role::Role,
status::GuildStatus, system_channel_flags::SystemChannelFlags,
unavailable_guild::UnavailableGuild, verification_level::VerificationLevel,
widget::GuildWidget,
};

use crate::{
Expand Down

0 comments on commit eb5e102

Please sign in to comment.