diff options
| author | acdenisSK <[email protected]> | 2017-08-01 10:54:32 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-08-01 10:54:32 +0200 |
| commit | 3f9db73a3c193eecfac142ecc40c48d9e4140591 (patch) | |
| tree | 4e361f176e09319cd3b94c7896ee850b896c4dc6 /src/client | |
| parent | Provide the input and limit back to the user, and do some consistencies (diff) | |
| download | serenity-3f9db73a3c193eecfac142ecc40c48d9e4140591.tar.xz serenity-3f9db73a3c193eecfac142ecc40c48d9e4140591.zip | |
Clippy and rustfmt
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 12 |
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) => { |