Initial API defs #14
clippy
12 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 12 |
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 110 in src/events.rs
github-actions / clippy
the trait bound `events_info::EventInfo<Types>: events::_::_serde::Serialize` is not satisfied
error[E0277]: the trait bound `events_info::EventInfo<Types>: events::_::_serde::Serialize` is not satisfied
--> src/events.rs:110:10
|
110 | .get("available_hotshot_events", |req, state| {
| ^^^ the trait `events::_::_serde::Serialize` is not implemented for `events_info::EventInfo<Types>`
|
= help: the following other types implement trait `events::_::_serde::Serialize`:
bool
char
isize
i8
i16
i32
i64
i128
and 285 others
= note: required for `std::vec::Vec<events_info::EventInfo<Types>>` to implement `events::_::_serde::Serialize`
note: required by a bound in `tide_disco::Api::<State, Error>::get`
--> /home/runner/.cargo/git/checkouts/tide-disco-f959d6bfd2507cc7/4ced31c/src/api.rs:634:12
|
628 | pub fn get<F, T>(&mut self, name: &str, handler: F) -> Result<&mut Self, ApiError>
| --- required by a bound in this associated function
...
634 | T: Serialize,
| ^^^^^^^^^ required by this bound in `Api::<State, Error>::get`
Check failure on line 112 in src/events.rs
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:112:38
|
112 | 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 7 in src/events_source.rs
github-actions / clippy
unused imports: `utils::BuilderCommitment`, `vid::VidCommitment`
error: unused imports: `utils::BuilderCommitment`, `vid::VidCommitment`
--> src/events_source.rs:7:5
|
7 | utils::BuilderCommitment,
| ^^^^^^^^^^^^^^^^^^^^^^^^
8 | vid::VidCommitment,
| ^^^^^^^^^^^^^^^^^^
Check failure on line 4 in src/events_source.rs
github-actions / clippy
unused imports: `Deserialize`, `Serialize`
error: unused imports: `Deserialize`, `Serialize`
--> src/events_source.rs:4:13
|
4 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
Check failure on line 3 in src/events_source.rs
github-actions / clippy
unused import: `hotshot_types::event::Event`
error: unused import: `hotshot_types::event::Event`
--> src/events_source.rs:3:5
|
3 | use hotshot_types::event::Event;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check failure on line 2 in src/events_source.rs
github-actions / clippy
unused imports: `hash::Hash`, `marker::PhantomData`
error: unused imports: `hash::Hash`, `marker::PhantomData`
--> src/events_source.rs:2:11
|
2 | use std::{hash::Hash, marker::PhantomData};
| ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
Check failure on line 9 in src/events_info.rs
github-actions / clippy
unused import: `hash::Hash`
error: unused import: `hash::Hash`
--> src/events_info.rs:9:11
|
9 | use std::{hash::Hash, marker::PhantomData};
| ^^^^^^^^^^
Check failure on line 8 in src/events_info.rs
github-actions / clippy
unused imports: `ResultExt`, `Snafu`
error: unused imports: `ResultExt`, `Snafu`
--> src/events_info.rs:8:13
|
8 | use snafu::{ResultExt, Snafu};
| ^^^^^^^^^ ^^^^^
Check failure on line 7 in src/events_info.rs
github-actions / clippy
unused imports: `Deserialize`, `Serialize`
error: unused imports: `Deserialize`, `Serialize`
--> src/events_info.rs:7:13
|
7 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
Check failure on line 4 in src/events_info.rs
github-actions / clippy
unused imports: `utils::BuilderCommitment`, `vid::VidCommitment`
error: unused imports: `utils::BuilderCommitment`, `vid::VidCommitment`
--> src/events_info.rs:4:5
|
4 | utils::BuilderCommitment,
| ^^^^^^^^^^^^^^^^^^^^^^^^
5 | vid::VidCommitment,
| ^^^^^^^^^^^^^^^^^^
Check failure on line 15 in src/events.rs
github-actions / clippy
unused import: `WriteState`
error: unused import: `WriteState`
--> src/events.rs:15:25
|
15 | method::{ReadState, WriteState},
| ^^^^^^^^^^
Check failure on line 8 in src/events.rs
github-actions / clippy
unused import: `utils::BuilderCommitment`
error: unused import: `utils::BuilderCommitment`
--> src/events.rs:8:5
|
8 | utils::BuilderCommitment,
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`