diff options
| author | Zeyla Hellyer <[email protected]> | 2017-05-27 11:03:09 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-05-27 11:03:09 -0700 |
| commit | 494cc50ff3dcf8553a5588fa868754d27c237055 (patch) | |
| tree | e0be77d1e40f51aca2b67bdf2509297c8c263b89 /src | |
| parent | Remove deprecated GuildChannel methods (diff) | |
| download | serenity-494cc50ff3dcf8553a5588fa868754d27c237055.tar.xz serenity-494cc50ff3dcf8553a5588fa868754d27c237055.zip | |
Guild::create_channel doesn't require mutability
Change `Guild::create_channel` to take a non-mutable reference, as
mutability isn't required.
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/guild/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs index aa33737..91f03ea 100644 --- a/src/model/guild/mod.rs +++ b/src/model/guild/mod.rs @@ -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; |