Skip to content

Initial api design

Initial api design #18

GitHub Actions / clippy failed Mar 13, 2024 in 0s

clippy

4 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 4
Warning 0
Note 0
Help 0

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check failure on line 106 in src/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `context` found for enum `std::result::Result` in the current scope

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

Check failure on line 106 in src/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `context` found for enum `std::result::Result` in the current scope

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

Check failure on line 102 in src/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `hotshot_types::data::ViewNumber: std::convert::From<&tagged_base64::TaggedBase64>` is not satisfied

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>`

Check failure on line 102 in src/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `hotshot_types::data::ViewNumber: std::convert::From<&tagged_base64::TaggedBase64>` is not satisfied

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>`