Skip to content

Commit

Permalink
Guild::create_channel doesn't require mutability
Browse files Browse the repository at this point in the history
Change `Guild::create_channel` to take a non-mutable reference, as
mutability isn't required.
  • Loading branch information
Zeyla Hellyer committed May 27, 2017
1 parent ab7f113 commit 494cc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/guild/mod.rs
Expand Up @@ -272,7 +272,7 @@ impl Guild {
/// [`Channel`]: struct.Channel.html
/// [`ModelError::InvalidPermissions`]: enum.ModelError.html#variant.InvalidPermissions
/// [Manage Channels]: permissions/constant.MANAGE_CHANNELS.html
pub fn create_channel(&mut self, name: &str, kind: ChannelType) -> Result<GuildChannel> {
pub fn create_channel(&self, name: &str, kind: ChannelType) -> Result<GuildChannel> {
#[cfg(feature="cache")]
{
let req = permissions::MANAGE_CHANNELS;
Expand Down

0 comments on commit 494cc50

Please sign in to comment.