Skip to content

Fix error on source mdia #1337

Fix error on source mdia

Fix error on source mdia #1337

Triggered via push December 5, 2023 15:13
Status Failure
Total duration 19m 16s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

rust.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors
format
Process completed with exit code 1.
lint-wasm: src/web.rs#L389
error[E0277]: the trait bound `structs::IssueMediaRequest: std::convert::From<wasm_bindgen::JsValue>` is not satisfied --> src/web.rs:389:26 | 389 | Some(IssueMediaRequest::from(media)) | ^^^^^^^^^^^^^^^^^ the trait `std::convert::From<wasm_bindgen::JsValue>` is not implemented for `structs::IssueMediaRequest` | = help: the following other types implement trait `std::convert::From<T>`: <structs::IssueMediaRequest as std::convert::From<structs::ContractMediaDetail>> <structs::IssueMediaRequest as std::convert::From<structs::MediaResponse>>
lint-wasm: src/web.rs#L401
error[E0308]: mismatched types --> src/web.rs:401:28 | 401 | meta: Some(media), | ---- ^^^^^ expected `IssueMediaRequest`, found `Option<IssueMediaRequest>` | | | arguments to this enum variant are incorrect | = note: expected struct `structs::IssueMediaRequest` found enum `std::option::Option<structs::IssueMediaRequest>` help: the type constructed contains `std::option::Option<structs::IssueMediaRequest>` due to the type of the argument passed --> src/web.rs:401:23 | 401 | meta: Some(media), | ^^^^^-----^ | | | this argument influences the type of `Some` note: tuple variant defined here --> /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/option.rs:571:5
lint-wasm: src/web.rs#L401
error[E0308]: mismatched types --> src/web.rs:401:28 | 401 | meta: Some(media), | ---- ^^^^^ expected `IssueMediaRequest`, found `Option<IssueMediaRequest>` | | | arguments to this enum variant are incorrect | = note: expected struct `structs::IssueMediaRequest` found enum `std::option::Option<structs::IssueMediaRequest>` help: the type constructed contains `std::option::Option<structs::IssueMediaRequest>` due to the type of the argument passed --> src/web.rs:401:23 | 401 | meta: Some(media), | ^^^^^-----^ | | | this argument influences the type of `Some` note: tuple variant defined here --> /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/option.rs:571:5
lint-wasm
Process completed with exit code 1.
test
Process completed with exit code 101.