aboutsummaryrefslogtreecommitdiff
path: root/src/model/id.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2017-01-08 19:30:39 -0800
committerAustin Hellyer <[email protected]>2017-01-08 19:30:39 -0800
commit9a80be04a0ba5c6066606286f71285e5aa2949d5 (patch)
tree7e945710f788efdb5af3842e7b24c0c3b26907fb /src/model/id.rs
parentAdd more shard logging (diff)
downloadserenity-9a80be04a0ba5c6066606286f71285e5aa2949d5.tar.xz
serenity-9a80be04a0ba5c6066606286f71285e5aa2949d5.zip
Alphabetize model method names
Diffstat (limited to 'src/model/id.rs')
-rw-r--r--src/model/id.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/id.rs b/src/model/id.rs
index aec5bfe..9c2bb7a 100644
--- a/src/model/id.rs
+++ b/src/model/id.rs
@@ -91,6 +91,7 @@ impl GuildId {
/// Returns this Id as a `ChannelId`, which is useful when needing to use
/// the guild Id to send a message to the default channel.
#[cfg(feature="methods")]
+ #[inline(always)]
pub fn to_channel(&self) -> ChannelId {
ChannelId(self.0)
}