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.1 #173

fix(deps): update rust crate serenity to 0.12.1

fix(deps): update rust crate serenity to 0.12.1 #173

Triggered via push May 3, 2024 17:19
Status Failure
Total duration 41s
Artifacts

docker.yml

on: push
Build Docker image, and Publish on main branch
32s
Build Docker image, and Publish on main branch
Fit to window
Zoom out
Zoom in

Annotations

5 errors
Build Docker image, and Publish on main branch
buildx failed with: ERROR: failed to solve: process "/bin/sh -c cargo install cargo-chef" did not complete successfully: exit code: 101
cannot initialize a tuple struct which contains private fields: src/parsers/parse_guild_id.rs#L8
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)?)) | +++++
cannot initialize a tuple struct which contains private fields: src/parsers/parse_channel_id.rs#L8
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)?)) | +++++
type annotations needed: src/handler.rs#L47
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 */| { | ++++++++++++
cannot initialize a tuple struct which contains private fields: src/parsers/parse_role_id.rs#L8
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; |