diff options
| author | acdenisSK <[email protected]> | 2017-10-01 12:06:29 +0200 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:45:48 -0700 |
| commit | 551f16673fe775a80a1da788fd7e1db20f6eae29 (patch) | |
| tree | 6408fd817d715e16c93fa629489e40de85a4f0e8 /src/gateway/shard.rs | |
| parent | Rename an internal Shard Runner method (diff) | |
| download | serenity-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.rs | 2 |
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 |