aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-08-01 10:54:32 +0200
committeracdenisSK <[email protected]>2017-08-01 10:54:32 +0200
commit3f9db73a3c193eecfac142ecc40c48d9e4140591 (patch)
tree4e361f176e09319cd3b94c7896ee850b896c4dc6 /src/client
parentProvide the input and limit back to the user, and do some consistencies (diff)
downloadserenity-3f9db73a3c193eecfac142ecc40c48d9e4140591.tar.xz
serenity-3f9db73a3c193eecfac142ecc40c48d9e4140591.zip
Clippy and rustfmt
Diffstat (limited to 'src/client')
-rw-r--r--src/client/mod.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs
index f5382e2..69d3903 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -803,7 +803,11 @@ fn boot_shard(info: &BootInfo) -> Result<Shard> {
// After three attempts, start re-retrieving the gateway URL. Before that,
// use the cached one.
for attempt_number in 1..3u64 {
- let BootInfo { ref gateway_url, ref token, shard_info } = *info;
+ let BootInfo {
+ ref gateway_url,
+ ref token,
+ shard_info,
+ } = *info;
// If we've tried over 3 times so far, get a new gateway URL.
//
// If doing so fails, count this as a boot attempt.
@@ -819,11 +823,7 @@ fn boot_shard(info: &BootInfo) -> Result<Shard> {
}
}
- let attempt = Shard::new(
- gateway_url.clone(),
- token.clone(),
- shard_info,
- );
+ let attempt = Shard::new(gateway_url.clone(), token.clone(), shard_info);
match attempt {
Ok(shard) => {