From 3bc891a0dd0c525b4b9045d8d8babe22473b9a4e Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 26 Feb 2025 19:23:55 +0100 Subject: [PATCH] fix compile --- .github/workflows/backend-test.yml | 2 +- backend/parsers/windmill-parser-wasm/tests/wasm.rs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backend-test.yml b/.github/workflows/backend-test.yml index f6dd90edbb..6d12e4f69c 100644 --- a/.github/workflows/backend-test.yml +++ b/.github/workflows/backend-test.yml @@ -51,7 +51,7 @@ jobs: - uses: actions-rust-lang/setup-rust-toolchain@v1 with: cache-workspaces: backend - toolchain: 1.86.0 + toolchain: 1.85.0 - uses: Swatinem/rust-cache@v2 with: workspaces: backend diff --git a/backend/parsers/windmill-parser-wasm/tests/wasm.rs b/backend/parsers/windmill-parser-wasm/tests/wasm.rs index 9f6d452a21..e8dc1e986b 100644 --- a/backend/parsers/windmill-parser-wasm/tests/wasm.rs +++ b/backend/parsers/windmill-parser-wasm/tests/wasm.rs @@ -4,6 +4,7 @@ use windmill_parser::{Arg, MainArgSignature, ObjectProperty, Typ}; use windmill_parser_bash::parse_powershell_sig; use windmill_parser_ts::{parse_deno_signature, parse_expr_for_ids, parse_expr_for_imports}; +#[allow(dead_code)] #[wasm_bindgen_test] fn test_parse_deno_sig() -> anyhow::Result<()> { let code = " @@ -146,6 +147,8 @@ export function main(test1?: string, test2: string = \"burkina\", Ok(()) } + +#[allow(dead_code)] #[wasm_bindgen_test] fn test_parse_deno_sig_implicit_types() -> anyhow::Result<()> { let code = " @@ -224,6 +227,7 @@ export function main(test2 = \"burkina\", Ok(()) } +#[allow(dead_code)] #[wasm_bindgen_test] fn test_parse_deno_types() -> anyhow::Result<()> { let code = " @@ -274,6 +278,7 @@ export function main(foo: FooBar, {a, b}: FooBar, {c, d}: FooBar = {a: \"foo\", Ok(()) } +#[allow(dead_code)] #[wasm_bindgen_test] fn test_parse_enum_list() -> anyhow::Result<()> { let code = " @@ -305,6 +310,7 @@ export function main(foo: (\"foo\" | \"bar\")[]) { Ok(()) } +#[allow(dead_code)] #[wasm_bindgen_test] fn test_parse_extract_ident() -> anyhow::Result<()> { let code = " @@ -324,6 +330,7 @@ fn test_parse_extract_ident() -> anyhow::Result<()> { Ok(()) } +#[allow(dead_code)] #[wasm_bindgen_test] fn test_parse_imports() -> anyhow::Result<()> { let code = " @@ -347,6 +354,7 @@ fn test_parse_imports() -> anyhow::Result<()> { Ok(()) } +#[allow(dead_code)] #[wasm_bindgen_test] fn test_parse_imports_dts() -> anyhow::Result<()> { let code = " @@ -359,6 +367,7 @@ export type foo = number Ok(()) } +#[allow(dead_code)] #[wasm_bindgen_test] fn test_parse_powershell_sig() -> anyhow::Result<()> { let code = "