Skip to content

Initial api design

Initial api design #18

Triggered via pull request March 13, 2024 20:50
Status Failure
Total duration 2m 54s
Artifacts

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 2 warnings
no method named `context` found for enum `std::result::Result` in the current scope: src/events.rs#L106
error[E0599]: no method named `context` found for enum `std::result::Result` in the current scope --> src/events.rs:106:22 | 103 | / state 104 | | .get_available_hotshot_events(view_number) 105 | | .await 106 | | .context(EventAvailableSnafu { | | -^^^^^^^ method not found in `Result<Vec<EventInfo<Types>>, EventError>` | |_____________________| | | = help: items from traits can only be used if the trait is in scope help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: | 1 + use anyhow::Context; | 1 + use eyre::ContextCompat; | 1 + use eyre::WrapErr; | 1 + use snafu::OptionExt; | and 2 other candidates
no method named `context` found for enum `std::result::Result` in the current scope: src/events.rs#L106
error[E0599]: no method named `context` found for enum `std::result::Result` in the current scope --> src/events.rs:106:22 | 103 | / state 104 | | .get_available_hotshot_events(view_number) 105 | | .await 106 | | .context(EventAvailableSnafu { | | -^^^^^^^ method not found in `Result<Vec<EventInfo<Types>>, EventError>` | |_____________________| | | = help: items from traits can only be used if the trait is in scope help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: | 1 + use anyhow::Context; | 1 + use eyre::ContextCompat; | 1 + use eyre::WrapErr; | 1 + use snafu::OptionExt; | and 2 other candidates
the trait bound `hotshot_types::data::ViewNumber: std::convert::From<&tagged_base64::TaggedBase64>` is not satisfied: src/events.rs#L102
error[E0277]: the trait bound `hotshot_types::data::ViewNumber: std::convert::From<&tagged_base64::TaggedBase64>` is not satisfied --> src/events.rs:102:39 | 102 | let view_number = req.blob_param("view_number")?; | ^^^^^^^^^^ the trait `std::convert::From<&tagged_base64::TaggedBase64>` is not implemented for `hotshot_types::data::ViewNumber` | = note: required for `&tagged_base64::TaggedBase64` to implement `std::convert::Into<hotshot_types::data::ViewNumber>` = note: required for `hotshot_types::data::ViewNumber` to implement `std::convert::TryFrom<&tagged_base64::TaggedBase64>`
the trait bound `hotshot_types::data::ViewNumber: std::convert::From<&tagged_base64::TaggedBase64>` is not satisfied: src/events.rs#L102
error[E0277]: the trait bound `hotshot_types::data::ViewNumber: std::convert::From<&tagged_base64::TaggedBase64>` is not satisfied --> src/events.rs:102:39 | 102 | let view_number = req.blob_param("view_number")?; | ^^^^^^^^^^ the trait `std::convert::From<&tagged_base64::TaggedBase64>` is not implemented for `hotshot_types::data::ViewNumber` | = note: required for `&tagged_base64::TaggedBase64` to implement `std::convert::Into<hotshot_types::data::ViewNumber>` = note: required for `hotshot_types::data::ViewNumber` to implement `std::convert::TryFrom<&tagged_base64::TaggedBase64>`
build
Clippy had exited with the 101 exit code
no method named `context` found for enum `std::result::Result` in the current scope: src/events.rs#L106
error[E0599]: no method named `context` found for enum `std::result::Result` in the current scope --> src/events.rs:106:22 | 103 | / state 104 | | .get_available_hotshot_events(view_number) 105 | | .await 106 | | .context(EventAvailableSnafu { | | -^^^^^^^ method not found in `Result<Vec<EventInfo<Types>>, EventError>` | |_____________________| | | = help: items from traits can only be used if the trait is in scope help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: | 1 + use anyhow::Context; | 1 + use eyre::ContextCompat; | 1 + use eyre::WrapErr; | 1 + use snafu::OptionExt; | and 2 other candidates
the trait bound `hotshot_types::data::ViewNumber: std::convert::From<&tagged_base64::TaggedBase64>` is not satisfied: src/events.rs#L102
error[E0277]: the trait bound `hotshot_types::data::ViewNumber: std::convert::From<&tagged_base64::TaggedBase64>` is not satisfied --> src/events.rs:102:39 | 102 | let view_number = req.blob_param("view_number")?; | ^^^^^^^^^^ the trait `std::convert::From<&tagged_base64::TaggedBase64>` is not implemented for `hotshot_types::data::ViewNumber` | = note: required for `&tagged_base64::TaggedBase64` to implement `std::convert::Into<hotshot_types::data::ViewNumber>` = note: required for `hotshot_types::data::ViewNumber` to implement `std::convert::TryFrom<&tagged_base64::TaggedBase64>`
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: styfle/[email protected], arduino/setup-protoc@v2, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/