Skip to content

Commit

Permalink
Fix rustfmt CI (#2471)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrasnitski authored Jun 24, 2023
1 parent 16bfbe2 commit 755f07c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/e05_command_framework/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ async fn say(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
// command to be executed. If the check fails, the command is not called.
#[check]
#[name = "Owner"]
#[rustfmt::skip]
async fn owner_check(
_: &Context,
msg: &Message,
Expand Down
3 changes: 1 addition & 2 deletions src/framework/standard/parse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,7 @@ fn is_unrecognised<T>(res: &Result<T, ParseError>) -> bool {
/// The "command" may be:
/// 1. A *help command* that provides a friendly browsing interface of all groups and commands,
/// explaining what each of them are, how they are laid out and how to invoke them. There can
/// only one help command registered, but might have many names defined for invocation of
/// itself.
/// only one help command registered, but might have many names defined for invocation of itself.
///
/// 2. A command defined under another command or a group, which may also belong to another group
/// and so on. To invoke this command, all names and prefixes of its parent commands and groups
Expand Down
5 changes: 2 additions & 3 deletions src/gateway/bridge/shard_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ impl ShardRunner {
///
/// 2. checks if a heartbeat should be sent to the discord Gateway, and if so, sends one.
///
/// 3. attempts to retrieve a message from the WebSocket, processing it into a
/// [`GatewayEvent`]. This will block for 100ms before assuming there is no message
/// available.
/// 3. attempts to retrieve a message from the WebSocket, processing it into a [`GatewayEvent`].
/// This will block for 100ms before assuming there is no message available.
///
/// 4. Checks with the [`Shard`] to determine if the gateway event is specifying an action to
/// take (e.g. resuming, reconnecting, heartbeating) and then performs that action, if any.
Expand Down

0 comments on commit 755f07c

Please sign in to comment.