-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix clippy error on wasmtest #12844
Fix clippy error on wasmtest #12844
Conversation
fn datafusion_test() { | ||
basic_exprs(); | ||
basic_parse(); | ||
} | ||
|
||
#[wasm_bindgen_test] | ||
#[wasm_bindgen_test(unsupported = tokio::test)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the new feature of wasm_bindgen_test, run this test with tokio::test
under non-wasm targets.
@@ -87,13 +87,14 @@ mod test { | |||
|
|||
wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); | |||
|
|||
#[wasm_bindgen_test] | |||
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)] | |||
#[cfg_attr(not(target_arch = "wasm32"), allow(dead_code))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test can't run on non-wasm targets, so add allow(dead_code)
.
thread 'test::datafusion_test' panicked at datafusion/wasmtest/src/lib.rs:41:1:
cannot call wasm-bindgen imported functions on non-wasm targets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @jonahgao
Merging to get CI green |
* Update to arrow 53.1.0 on branch-42 * Allow deprecated functions * Fix clippy error on wasmtest (#12844) * Update for different file sizes --------- Co-authored-by: Jonah Gao <jonahgao@msn.com>
Which issue does this PR close?
Closes #12842.
Rationale for this change
The new release of wasm-bindgen-test causes clippy to throw errors.
PR fixed these errors and also verified locally that these tests can still run on Chrome.
What changes are included in this PR?
Are these changes tested?
Yes
Are there any user-facing changes?
No