Skip to content

Commit a3332e4

Browse files
authored
CI fix for Rust 1.75 (#3761)
* fix wat output file * cargo clippy --no-deps --all-features -p wasm-bindgen-macro-support --fix -- -D warnings * add #[allow(unused_imports)] for the binding file in web-sys
1 parent c0ee195 commit a3332e4

File tree

4 files changed

+1593
-5
lines changed

4 files changed

+1593
-5
lines changed

crates/cli/tests/reference/anyref-import-catch.wat

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
(type (;3;) (func (param i32) (result i32)))
66
(import "./reference_test_bg.js" "__wbindgen_init_externref_table" (func (;0;) (type 0)))
77
(func $__wbindgen_exn_store (;1;) (type 2) (param i32))
8-
(func $exported (;2;) (type 2) (param i32))
9-
(func $__externref_table_dealloc (;3;) (type 2) (param i32))
8+
(func $__externref_table_dealloc (;2;) (type 2) (param i32))
9+
(func $exported (;3;) (type 2) (param i32))
1010
(func $__externref_table_alloc (;4;) (type 1) (result i32))
1111
(func $__wbindgen_add_to_stack_pointer (;5;) (type 3) (param i32) (result i32))
1212
(table (;0;) 128 externref)

crates/macro-support/src/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ impl<'a> ConvertToAst<(&ast::Program, BindgenAttrs, &'a Option<ast::ImportModule
525525
let operation_kind = operation_kind(&opts);
526526

527527
let kind = if opts.method().is_some() {
528-
let class = wasm.arguments.get(0).ok_or_else(|| {
528+
let class = wasm.arguments.first().ok_or_else(|| {
529529
err_span!(self, "imported methods must have at least one argument")
530530
})?;
531531
let class = match get_ty(&class.ty) {

0 commit comments

Comments
 (0)