From e3ceab3f4949dc558d17f49c58c93c0dced254a7 Mon Sep 17 00:00:00 2001 From: Sergey Kuznetsov Date: Fri, 21 Aug 2026 15:06:03 +0100 Subject: [PATCH] Fix clang-tidy and formatting --- .cspell.config.yaml | 1 + crates/xrpl-wasm-vm/tests/preflight.rs | 4 +++- rust-toolchain.toml | 2 +- src/libxrpl/tx/wasm/HostContext.cpp | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.cspell.config.yaml b/.cspell.config.yaml index 5c307ad521..d7f1c5f737 100644 --- a/.cspell.config.yaml +++ b/.cspell.config.yaml @@ -376,6 +376,7 @@ words: - vfalco - vinnie - wasmi + - wasmparser - Werror - wextra - wptr diff --git a/crates/xrpl-wasm-vm/tests/preflight.rs b/crates/xrpl-wasm-vm/tests/preflight.rs index 4192fcfdf4..36d4683998 100644 --- a/crates/xrpl-wasm-vm/tests/preflight.rs +++ b/crates/xrpl-wasm-vm/tests/preflight.rs @@ -479,7 +479,9 @@ fn an_exported_table_past_the_cap_does_not_pass() { assert!(refusal.contains("past the 1024-element cap"), "{refusal}"); passes(&module( - &[&format!(r#"(table (export "t") {MAX_TABLE_ELEMENTS} funcref)"#)], + &[&format!( + r#"(table (export "t") {MAX_TABLE_ELEMENTS} funcref)"# + )], "(i32.const 0)", )); } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 7048a88512..a82b4734d8 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] channel = "1.95" -components = ["rustfmt", "clippy", "rust-analyzer", "llvm-tools-preview", "rust-src"] +components = ["rustfmt", "clippy", "rust-analyzer", "llvm-tools-preview"] profile = "minimal" diff --git a/src/libxrpl/tx/wasm/HostContext.cpp b/src/libxrpl/tx/wasm/HostContext.cpp index 24b33a6e8c..c5a19a9fea 100644 --- a/src/libxrpl/tx/wasm/HostContext.cpp +++ b/src/libxrpl/tx/wasm/HostContext.cpp @@ -20,11 +20,13 @@ // For `TraceDataType`, which the bridge declares and this header defines. #include +#include #include #include #include #include #include +#include #include #include #include