Skip to content

Pyth (#143)

Pyth (#143) #49

Triggered via push October 7, 2024 04:02
Status Success
Total duration 5m 37s
Artifacts

docker-main.yaml

on: push
Build docker image
5m 31s
Build docker image
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
the `Err`-variant returned from this function is very large: crates/cmds-solana/src/nft/candy_machine_core/mod.rs#L139
warning: the `Err`-variant returned from this function is very large --> crates/cmds-solana/src/nft/candy_machine_core/mod.rs:139:31 | 139 | pub fn validate(&self) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes | = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err = note: `#[warn(clippy::result_large_err)]` on by default
the `Err`-variant returned from this function is very large: crates/cmds-solana/src/nft/candy_machine_core/mod.rs#L139
warning: the `Err`-variant returned from this function is very large --> crates/cmds-solana/src/nft/candy_machine_core/mod.rs:139:31 | 139 | pub fn validate(&self) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes | = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err = note: `#[warn(clippy::result_large_err)]` on by default
function `send` is never used: crates/command-rpc/src/server.rs#L35
warning: function `send` is never used --> crates/command-rpc/src/server.rs:35:10 | 35 | async fn send() {} | ^^^^
fields `natives` and `stream` are never read: crates/command-rpc/src/server.rs#L31
warning: fields `natives` and `stream` are never read --> crates/command-rpc/src/server.rs:31:5 | 30 | pub struct CommandHost { | ----------- fields in this struct 31 | natives: BTreeMap<Cow<'static, str>, CommandDescription>, | ^^^^^^^ 32 | stream: WsStream, | ^^^^^^ | = note: `#[warn(dead_code)]` on by default
function `send` is never used: crates/command-rpc/src/server.rs#L35
warning: function `send` is never used --> crates/command-rpc/src/server.rs:35:10 | 35 | async fn send() {} | ^^^^
fields `natives` and `stream` are never read: crates/command-rpc/src/server.rs#L31
warning: fields `natives` and `stream` are never read --> crates/command-rpc/src/server.rs:31:5 | 30 | pub struct CommandHost { | ----------- fields in this struct 31 | natives: BTreeMap<Cow<'static, str>, CommandDescription>, | ^^^^^^^ 32 | stream: WsStream, | ^^^^^^ | = note: `#[warn(dead_code)]` on by default
match can be simplified with `.unwrap_or_default()`: crates/space-wasm/src/ffi.rs#L85
warning: match can be simplified with `.unwrap_or_default()` --> crates/space-wasm/src/ffi.rs:85:5 | 85 | / match stub(ctx, bytes, bytes_len) { 86 | | Ok(pointer) => pointer, 87 | | _ => 0, 88 | | } | |_____^ help: replace it with: `stub(ctx, bytes, bytes_len).unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default
match can be simplified with `.unwrap_or_default()`: crates/space-wasm/src/ffi.rs#L85
warning: match can be simplified with `.unwrap_or_default()` --> crates/space-wasm/src/ffi.rs:85:5 | 85 | / match stub(ctx, bytes, bytes_len) { 86 | | Ok(pointer) => pointer, 87 | | _ => 0, 88 | | } | |_____^ help: replace it with: `stub(ctx, bytes, bytes_len).unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default
this `.find_map` can be written more simply using `.map(..).next()`: crates/srpc/src/lib.rs#L162
warning: this `.find_map` can be written more simply using `.map(..).next()` --> crates/srpc/src/lib.rs:162:9 | 162 | / self.transport.iter().find_map(|t| match t { 163 | | Transport::Http { port, .. } => { 164 | | Some(Url::parse(&format!("http://127.0.0.1:{}", port)).unwrap()) 165 | | } 166 | | }) | |__________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map = note: `#[warn(clippy::unnecessary_find_map)]` on by default
this `.find_map` can be written more simply using `.map(..).next()`: crates/srpc/src/lib.rs#L162
warning: this `.find_map` can be written more simply using `.map(..).next()` --> crates/srpc/src/lib.rs:162:9 | 162 | / self.transport.iter().find_map(|t| match t { 163 | | Transport::Http { port, .. } => { 164 | | Some(Url::parse(&format!("http://127.0.0.1:{}", port)).unwrap()) 165 | | } 166 | | }) | |__________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map = note: `#[warn(clippy::unnecessary_find_map)]` on by default