Skip to content

Commit

Permalink
Fix more clippy::doc_lazy_continuation hidden by macro invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed May 28, 2024
1 parent ea0e0ae commit a0b868f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/gateway/bridge/shard_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/gateway/bridge/shard_queuer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/gateway/shard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit a0b868f

Please sign in to comment.