Hi fellow yew and rust users,
I have this error
I have already provided implementation for Foo
impl Display for Foo {
fn fmt(&self, f: &mut Formatter) -> Result<(), Error> {
write!(f, "{}", format!("{} => {}", self.a, self.b))
}
}
Any ideas why am i still faced with this error?
To learn more, run the command again with --verbose.
error[E0277]: `std::vec::Vec<core::Foo>` doesn't implement `std::fmt::Display`
--> pii-yew/src/main.rs:144:9
|
144 | / html! {
145 | |
146 | | <div>
147 | | <Select<CountryCode>:
... |
172 | | </div>
173 | | }
| |_________^ `std::vec::Vec<core::Foo>` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `std::vec::Vec<core::Foo>`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
= note: required because of the requirements on the impl of `std::string::ToString` for `std::vec::Vec<core::Foo>`
= note: required by `yew::macros::add_attribute`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.