Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused warning allows #2682

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/client/event_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ macro_rules! event_handler {

/// This enum stores every possible event that an [`EventHandler`] can receive.
#[non_exhaustive]
#[allow(clippy::large_enum_variant)] // TODO: do some boxing to fix this
#[derive(Clone, Debug)]
pub enum FullEvent {
$(
Expand Down
1 change: 0 additions & 1 deletion src/framework/standard/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ impl<'a> From<&'a str> for Delimiter {
}

#[derive(Clone, Copy, Debug, PartialEq)]
#[allow(clippy::enum_variant_names)]
enum TokenKind {
Argument,
QuotedArgument,
Expand Down
1 change: 0 additions & 1 deletion src/framework/standard/parse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ async fn find_prefix<'a>(
/// - Nothing
///
/// In all cases, whitespace after the prefix is cleared.
#[allow(clippy::needless_lifetimes)] // Clippy and the compiler disagree
pub async fn prefix<'a>(
ctx: &Context,
msg: &Message,
Expand Down
1 change: 0 additions & 1 deletion src/model/channel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ use crate::model::Timestamp;
#[derive(Clone, Debug, Serialize)]
#[serde(untagged)]
#[non_exhaustive]
#[allow(clippy::large_enum_variant)] // https://github.com/rust-lang/rust-clippy/issues/9798
pub enum Channel {
/// A channel within a [`Guild`].
Guild(GuildChannel),
Expand Down
1 change: 0 additions & 1 deletion src/model/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,6 @@ impl<'de> Deserialize<'de> for GatewayEvent {
/// Event received over a websocket connection
///
/// [Discord docs](https://discord.com/developers/docs/topics/gateway-events#receive-events).
#[allow(clippy::large_enum_variant)]
#[cfg_attr(feature = "typesize", derive(typesize::derive::TypeSize))]
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
Expand Down
1 change: 0 additions & 1 deletion src/model/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ pub mod comma_separated_string {
Ok(vec)
}

#[allow(clippy::ptr_arg)]
pub fn serialize<S: Serializer>(
vec: &FixedArray<FixedString>,
serializer: S,
Expand Down