aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-08-18 20:50:23 -0700
committerZeyla Hellyer <[email protected]>2017-08-18 20:50:23 -0700
commitea72d05cf755d06d5c7da190e5d240fe4d77038c (patch)
tree9cf159a0b15c7819f2dfc2fb20e9c6d62dbf152b /src/model
parentClippy lints (diff)
downloadserenity-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')
-rw-r--r--src/model/guild/guild_id.rs4
-rw-r--r--src/model/guild/member.rs2
-rw-r--r--src/model/user.rs3
3 files changed, 6 insertions, 3 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();
diff --git a/src/model/user.rs b/src/model/user.rs
index 7d26fd4..d3cb72d 100644
--- a/src/model/user.rs
+++ b/src/model/user.rs
@@ -172,7 +172,8 @@ impl CurrentUser {
/// },
/// };
///
- /// assert_eq!(url, "https://discordapp.com/api/oauth2/authorize?client_id=249608697955745802&scope=bot");
+ /// assert_eq!(url, "https://discordapp.com/api/oauth2/authorize? \
+ /// client_id=249608697955745802&scope=bot");
/// ```
///
/// Get the invite url with some basic permissions set: