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 #159

fix(deps): update rust crate serenity to 0.12

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

Triggered via push November 27, 2023 20:24
Status Failure
Total duration 1m 39s
Artifacts

docker.yml

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

Annotations

5 errors
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.0/src/model/id.rs:152:49 | 152 | pub struct GuildId(#[serde(with = "snowflake")] NonZeroU64); | ^^^^^^^^^^ private field
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.0/src/model/id.rs:136:51 | 136 | pub struct ChannelId(#[serde(with = "snowflake")] NonZeroU64); | ^^^^^^^^^^ private field
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.0/src/model/id.rs:167:48 | 167 | pub struct RoleId(#[serde(with = "snowflake")] NonZeroU64); | ^^^^^^^^^^ private field help: consider importing this tuple variant instead | 1 + use serenity::all::Unresolved::RoleId; |
Build Docker image, and Publish on main branch
buildx failed with: ERROR: failed to solve: process "/bin/sh -c cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json" did not complete successfully: exit code: 101