Skip to content

Commit

Permalink
fix(gw-queue, http, model): Fix clippy up to 1.69.0 (twilight-rs#2198)
Browse files Browse the repository at this point in the history
* fix(gw-queue, http, model): Fix clippy up to 1.69.0

allow clippy::let-underscore-untyped

* remove let instead of allowing lint
  • Loading branch information
Erk- authored Apr 21, 2023
1 parent 4cc82f7 commit 9c74649
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion twilight-gateway-queue/src/large_bot_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Queue for LargeBotQueue {

tracing::info!("waiting for allowance on shard {}", shard_id[0]);

let _ = rx.await;
_ = rx.await;
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion twilight-gateway-queue/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Queue for LocalQueue {

tracing::info!("shard {id}/{total} waiting for allowance");

let _ = rx.await;
_ = rx.await;
})
}
}
Expand Down
3 changes: 1 addition & 2 deletions twilight-http/src/request/application/command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ mod tests {
options: Vec::new(),
version: Id::new(1),
};

let _ = CommandBorrowed {
_ = CommandBorrowed {
application_id: command.application_id,
default_member_permissions: command.default_member_permissions,
dm_permission: command.dm_permission,
Expand Down
2 changes: 1 addition & 1 deletion twilight-model/src/id/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ mod tests {
#[should_panic]
#[test]
const fn test_new_checked_zero() {
let _ = Id::<GenericMarker>::new(0);
_ = Id::<GenericMarker>::new(0);
}

/// Test that casting IDs maintains the original value.
Expand Down

0 comments on commit 9c74649

Please sign in to comment.