Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

fix(deps): update rust crate serenity to 0.12 #177

fix(deps): update rust crate serenity to 0.12

fix(deps): update rust crate serenity to 0.12 #177

GitHub Actions / clippy failed May 5, 2024 in 0s

clippy

4 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 4
Warning 0
Note 0
Help 0

Versions

  • rustc 1.78.0 (9b00956e5 2024-04-29)
  • cargo 1.78.0 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (9b00956 2024-04-29)

Annotations

Check failure on line 8 in src/parsers/parse_guild_id.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot initialize a tuple struct which contains private fields

error[E0423]: cannot initialize a tuple struct which contains private fields
   --> src/parsers/parse_guild_id.rs:8:8
    |
8   |     Ok(GuildId(u64::deserialize(deserializer)?))
    |        ^^^^^^^
    |
note: constructor is not visible here due to private fields
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serenity-0.12.1/src/model/id.rs:146:49
    |
146 | pub struct GuildId(#[serde(with = "snowflake")] NonZeroU64);
    |                                                 ^^^^^^^^^^ private field
help: you might have meant to use the `new` associated function
    |
8   |     Ok(GuildId::new(u64::deserialize(deserializer)?))
    |               +++++

Check failure on line 8 in src/parsers/parse_channel_id.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot initialize a tuple struct which contains private fields

error[E0423]: cannot initialize a tuple struct which contains private fields
   --> src/parsers/parse_channel_id.rs:8:8
    |
8   |     Ok(ChannelId(u64::deserialize(deserializer)?))
    |        ^^^^^^^^^
    |
note: constructor is not visible here due to private fields
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serenity-0.12.1/src/model/id.rs:131:51
    |
131 | pub struct ChannelId(#[serde(with = "snowflake")] NonZeroU64);
    |                                                   ^^^^^^^^^^ private field
help: you might have meant to use the `new` associated function
    |
8   |     Ok(ChannelId::new(u64::deserialize(deserializer)?))
    |                 +++++

Check failure on line 47 in src/handler.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

type annotations needed

error[E0282]: type annotations needed
  --> src/handler.rs:47:39
   |
47 |             .send_message(&ctx.http, |m| {
   |                                       ^
48 |                 m.embed(|e| {
   |                 - type must be known at this point
   |
help: consider giving this closure parameter an explicit type
   |
47 |             .send_message(&ctx.http, |m: /* Type */| {
   |                                        ++++++++++++

Check failure on line 8 in src/parsers/parse_role_id.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot initialize a tuple struct which contains private fields

error[E0423]: cannot initialize a tuple struct which contains private fields
   --> src/parsers/parse_role_id.rs:8:8
    |
8   |     Ok(RoleId(u64::deserialize(deserializer)?))
    |        ^^^^^^
    |
note: constructor is not visible here due to private fields
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serenity-0.12.1/src/model/id.rs:161:48
    |
161 | pub struct RoleId(#[serde(with = "snowflake")] NonZeroU64);
    |                                                ^^^^^^^^^^ private field
help: you might have meant to use the `new` associated function
    |
8   |     Ok(RoleId::new(u64::deserialize(deserializer)?))
    |              +++++
help: consider importing this tuple variant instead
    |
1   + use serenity::all::Unresolved::RoleId;
    |