Skip to content

Breaking change from generics #5042

Description

@guybedford

Just noticed this one from fzyzcjy/flutter_rust_bridge#3009 -

Error[E0283]: type annotations needed
   --> /Users/nay/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flutter_rust_bridge-2.11.1/src/third_party/wasm_bindgen/worker_pool.rs:140:30
    |
140 |         worker.post_message(&Array::from_iter([wasm_init_object]))?;
    |                              ^^^^^ cannot infer type for type parameter `T` declared on the struct `Array`
    |
    = note: cannot satisfy `_: JsGeneric`
    = note: required for `js_sys::Array<_>` to implement `FromIterator<Object>`

It could make sense to reconsider this specific method's generics approach. Will investigate further soon.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions