Skip to content

test: update tests to use TestRpcProvider #83

test: update tests to use TestRpcProvider

test: update tests to use TestRpcProvider #83

Triggered via push October 8, 2024 18:25
Status Success
Total duration 34m 6s
Artifacts

ci.yml

on: push
Matrix: build
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
`impl (for<'a> Fn(insta::internals::Content, insta::internals::ContentPath<'a>) -> std::string::String) + std::clone::Clone + 'static` will capture more lifetimes than possibly intended in edition 2024: crates/test_utils/src/lib.rs#L10
warning: `impl (for<'a> Fn(insta::internals::Content, insta::internals::ContentPath<'a>) -> std::string::String) + std::clone::Clone + 'static` will capture more lifetimes than possibly intended in edition 2024 --> crates/test_utils/src/lib.rs:10:6 | 10 | ) -> impl Fn(Content, ContentPath) -> String + Clone + 'static { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this changes meaning in Rust 2024 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/rpit-lifetime-capture.html> note: specifically, this lifetime is in scope but not mentioned in the type's bounds --> crates/test_utils/src/lib.rs:9:15 | 9 | replacement: &str, | ^ = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 = note: `-W impl-trait-overcaptures` implied by `-W rust-2024-compatibility` = help: to override `-W rust-2024-compatibility` add `#[allow(impl_trait_overcaptures)]`
`impl (for<'a> Fn(insta::internals::Content, insta::internals::ContentPath<'a>) -> std::string::String) + std::clone::Clone + 'static` will capture more lifetimes than possibly intended in edition 2024: crates/test_utils/src/lib.rs#L28
warning: `impl (for<'a> Fn(insta::internals::Content, insta::internals::ContentPath<'a>) -> std::string::String) + std::clone::Clone + 'static` will capture more lifetimes than possibly intended in edition 2024 --> crates/test_utils/src/lib.rs:28:6 | 28 | ) -> impl Fn(Content, ContentPath) -> String + Clone + 'static { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this changes meaning in Rust 2024 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/rpit-lifetime-capture.html> note: specifically, this lifetime is in scope but not mentioned in the type's bounds --> crates/test_utils/src/lib.rs:27:15 | 27 | replacement: &str, | ^ = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024
the `expr` fragment specifier will accept more expressions in the 2024 edition: crates/wallet_standard/src/solana/sign_in.rs#L166
warning: the `expr` fragment specifier will accept more expressions in the 2024 edition --> crates/wallet_standard/src/solana/sign_in.rs:166:11 | 166 | ($field:expr, $name:literal) => { | ^^^^ | = warning: this changes meaning in Rust 2024 = note: for more information, see Migration Guide <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/macro-fragment-specifiers.html> = note: `-W edition-2024-expr-fragment-specifier` implied by `-W rust-2024-compatibility` = help: to override `-W rust-2024-compatibility` add `#[allow(edition_2024_expr_fragment_specifier)]` help: to keep the existing behavior, use the `expr_2021` fragment specifier | 166 | ($field:expr_2021, $name:literal) => { | ~~~~~~~~~
the `expr` fragment specifier will accept more expressions in the 2024 edition: crates/wallet_standard/src/solana/sign_in.rs#L239
warning: the `expr` fragment specifier will accept more expressions in the 2024 edition --> crates/wallet_standard/src/solana/sign_in.rs:239:11 | 239 | ($field:expr, $name:literal) => { | ^^^^ | = warning: this changes meaning in Rust 2024 = note: for more information, see Migration Guide <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/macro-fragment-specifiers.html> help: to keep the existing behavior, use the `expr_2021` fragment specifier | 239 | ($field:expr_2021, $name:literal) => { | ~~~~~~~~~
the `expr` fragment specifier will accept more expressions in the 2024 edition: crates/wallet_standard_browser/src/types.rs#L26
warning: the `expr` fragment specifier will accept more expressions in the 2024 edition --> crates/wallet_standard_browser/src/types.rs:26:23 | 26 | ($ident:ident, $name:expr) => { | ^^^^ | = warning: this changes meaning in Rust 2024 = note: for more information, see Migration Guide <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/macro-fragment-specifiers.html> = note: `-W edition-2024-expr-fragment-specifier` implied by `-W rust-2024-compatibility` = help: to override `-W rust-2024-compatibility` add `#[allow(edition_2024_expr_fragment_specifier)]` help: to keep the existing behavior, use the `expr_2021` fragment specifier | 26 | ($ident:ident, $name:expr_2021) => { | ~~~~~~~~~
item in documentation is missing backticks: crates/wallet_standard_browser/readme.md#L1
warning: item in documentation is missing backticks --> /home/runner/work/wasm_solana/wasm_solana/crates/wallet_standard_browser/readme.md:1:3 | 1 | # wallet_standard_browser | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown = note: `-W clippy::doc-markdown` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::doc_markdown)]` help: try | 1 | # `wallet_standard_browser` | ~~~~~~~~~~~~~~~~~~~~~~~~~
use of deprecated struct `solana_sdk::stake::config::Config`: Please use `solana_sdk::stake::state::warmup_cooldown_rate()` instead: crates/wasm_client_solana/src/solana_config_program.rs#L11
warning: use of deprecated struct `solana_sdk::stake::config::Config`: Please use `solana_sdk::stake::state::warmup_cooldown_rate()` instead --> crates/wasm_client_solana/src/solana_config_program.rs:11:32 | 11 | use solana_sdk::stake::config::Config as StakeConfig; | ^^^^^^ | = note: `#[warn(deprecated)]` on by default
unused variable: `response`: crates/wasm_client_solana/src/providers/websocket_provider.rs#L201
warning: unused variable: `response` --> crates/wasm_client_solana/src/providers/websocket_provider.rs:201:12 | 201 | let Some(response) = stream.next().await else { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` | = note: `#[warn(unused_variables)]` on by default
trait `SolanaRpcSender` is never used: crates/wasm_client_solana/src/rpc_sender.rs#L8
warning: trait `SolanaRpcSender` is never used --> crates/wasm_client_solana/src/rpc_sender.rs:8:11 | 8 | pub trait SolanaRpcSender { | ^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
first doc comment paragraph is too long: crates/wasm_client_solana/src/rpc_response.rs#L38
warning: first doc comment paragraph is too long --> crates/wasm_client_solana/src/rpc_response.rs:38:1 | 38 | / /// Wrapper for rpc return types of methods that provide responses both with and 39 | | /// without context. Main purpose of this is to fix methods that lack context 40 | | /// information in their return type, without breaking backwards compatibility. | |_ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph = note: `-W clippy::too-long-first-doc-paragraph` implied by `-W clippy::style` = help: to override `-W clippy::style` add `#[allow(clippy::too_long_first_doc_paragraph)]`