diff options
| author | Zeyla Hellyer <[email protected]> | 2017-08-18 20:50:23 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-08-18 20:50:23 -0700 |
| commit | ea72d05cf755d06d5c7da190e5d240fe4d77038c (patch) | |
| tree | 9cf159a0b15c7819f2dfc2fb20e9c6d62dbf152b /src/model/guild | |
| parent | Clippy lints (diff) | |
| download | serenity-ea72d05cf755d06d5c7da190e5d240fe4d77038c.tar.xz serenity-ea72d05cf755d06d5c7da190e5d240fe4d77038c.zip | |
Fix rustfmt lines that are too long
Apparently rustfmt can't fix some of these, causing it to exit with 3
and therefore failing the build.
Diffstat (limited to 'src/model/guild')
| -rw-r--r-- | src/model/guild/guild_id.rs | 4 | ||||
| -rw-r--r-- | src/model/guild/member.rs | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/model/guild/guild_id.rs b/src/model/guild/guild_id.rs index 5bad3ab..4d6ba9b 100644 --- a/src/model/guild/guild_id.rs +++ b/src/model/guild/guild_id.rs @@ -15,7 +15,9 @@ use internal::prelude::*; impl GuildId { /// Converts the guild Id into the default channel's Id. #[inline] - #[deprecated(note = "The concept of default channels is no more, use `Guild::default_channel{_guaranteed}` to simulate the concept.")] + #[deprecated(note = "The concept of default channels is no more, use \ + `Guild::default_channel{_guaranteed}` to simulate the + concept.")] pub fn as_channel_id(&self) -> ChannelId { ChannelId(self.0) } /// Ban a [`User`] from the guild. All messages by the diff --git a/src/model/guild/member.rs b/src/model/guild/member.rs index 819a4e9..f1a5114 100644 --- a/src/model/guild/member.rs +++ b/src/model/guild/member.rs @@ -280,7 +280,7 @@ impl Member { pub fn permissions(&self) -> Result<Permissions> { let guild = match self.guild_id.find() { Some(guild) => guild, - None => return Err(From::from(ModelError::GuildNotFound)), + None => return Err(From::from(ModelError::GuildNotFound)), }; let guild = guild.read().unwrap(); |