From a0b868fb443d1a663af99711b0b0fc5cd5abc049 Mon Sep 17 00:00:00 2001 From: GnomedDev Date: Tue, 28 May 2024 14:24:34 +0100 Subject: [PATCH] Fix more clippy::doc_lazy_continuation hidden by macro invoke --- src/gateway/bridge/shard_manager.rs | 6 +++--- src/gateway/bridge/shard_queuer.rs | 6 +++--- src/gateway/shard.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gateway/bridge/shard_manager.rs b/src/gateway/bridge/shard_manager.rs index d9ccb8081bd..d20ef98244f 100644 --- a/src/gateway/bridge/shard_manager.rs +++ b/src/gateway/bridge/shard_manager.rs @@ -254,9 +254,9 @@ impl ShardManager { /// Returns a boolean indicating whether a shard runner was present. This is _not_ necessary an /// indicator of whether the shard runner was successfully shut down. /// - /// **Note**: If the receiving end of an mpsc channel - theoretically owned by the shard runner - /// - no longer exists, then the shard runner will not know it should shut down. This _should - /// never happen_. It may already be stopped. + /// **Note**: If the receiving end of an mpsc channel - owned by the shard runner - no longer + /// exists, then the shard runner will not know it should shut down. This _should never happen_. + /// It may already be stopped. #[instrument(skip(self))] pub async fn shutdown(&self, shard_id: ShardId, code: u16) { const TIMEOUT: tokio::time::Duration = tokio::time::Duration::from_secs(5); diff --git a/src/gateway/bridge/shard_queuer.rs b/src/gateway/bridge/shard_queuer.rs index 87e417bc872..2c0571a8fa5 100644 --- a/src/gateway/bridge/shard_queuer.rs +++ b/src/gateway/bridge/shard_queuer.rs @@ -230,9 +230,9 @@ impl ShardQueuer { /// Attempts to shut down the shard runner by Id. /// - /// **Note**: If the receiving end of an mpsc channel - theoretically owned by the shard runner - /// - no longer exists, then the shard runner will not know it should shut down. This _should - /// never happen_. It may already be stopped. + /// **Note**: If the receiving end of an mpsc channel - owned by the shard runner - no longer + /// exists, then the shard runner will not know it should shut down. This _should never happen_. + /// It may already be stopped. #[instrument(skip(self))] pub async fn shutdown(&mut self, shard_id: ShardId, code: u16) { info!("Shutting down shard {}", shard_id); diff --git a/src/gateway/shard.rs b/src/gateway/shard.rs index a2545bdf8e9..a60a85fd7a5 100644 --- a/src/gateway/shard.rs +++ b/src/gateway/shard.rs @@ -423,7 +423,7 @@ impl Shard { /// The best case scenario is that one of two values is returned: /// - `Ok(None)`: a heartbeat, late hello, or session invalidation was received; /// - `Ok(Some((event, None)))`: an op0 dispatch was received, and the shard's voice state will - /// be updated, _if_ the `voice` feature is enabled. + /// be updated, _if_ the `voice` feature is enabled. /// /// # Errors ///