aboutsummaryrefslogtreecommitdiff
path: root/src/gateway/shard.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-01 12:06:29 +0200
committerZeyla Hellyer <[email protected]>2017-10-09 15:45:48 -0700
commit551f16673fe775a80a1da788fd7e1db20f6eae29 (patch)
tree6408fd817d715e16c93fa629489e40de85a4f0e8 /src/gateway/shard.rs
parentRename an internal Shard Runner method (diff)
downloadserenity-551f16673fe775a80a1da788fd7e1db20f6eae29.tar.xz
serenity-551f16673fe775a80a1da788fd7e1db20f6eae29.zip
Have `ConnectionStage` derive Copy
Since it's a fairly simple enum. Also changed `is_connecting` to be more idiomatic.
Diffstat (limited to 'src/gateway/shard.rs')
-rw-r--r--src/gateway/shard.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/shard.rs b/src/gateway/shard.rs
index de5104e..b0d10a1 100644
--- a/src/gateway/shard.rs
+++ b/src/gateway/shard.rs
@@ -306,7 +306,7 @@ impl Shard {
/// Returns the current connection stage of the shard.
pub fn stage(&self) -> ConnectionStage {
- self.stage.clone()
+ self.stage
}
/// Handles an event from the gateway over the receiver, requiring the