Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with serde 1.0.157 and newer #206

Closed
wants to merge 1 commit into from
Closed

Fix build with serde 1.0.157 and newer #206

wants to merge 1 commit into from

Conversation

parasyte
Copy link

serde 1.0.157 and later rejects this particular attribute with the following error:

error: unexpected end of input, unexpected token in nested attribute, expected ident
  --> crox\src\main.rs:35:13
   |
35 |     #[serde()]
   |             ^

error[E0277]: the trait bound `Event: Serialize` is not satisfied
    --> crox\src\main.rs:175:35
     |
175  |             seq.serialize_element(&crox_event)?;
     |                 ----------------- ^^^^^^^^^^^ the trait `Serialize` is not implemented for `Event`
     |                 |
     |                 required by a bound introduced by this call
     |
     = help: the following other types implement trait `Serialize`:
               &'a T
               &'a mut T
               ()
               (T0, T1)
               (T0, T1, T2)
               (T0, T1, T2, T3)
               (T0, T1, T2, T3, T4)
               (T0, T1, T2, T3, T4, T5)
             and 131 others
note: required by a bound in `_serde::ser::SerializeSeq::serialize_element`
    --> C:\Users\jay\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.157\src\ser\mod.rs:1534:12
     |
1534 |         T: Serialize;
     |            ^^^^^^^^^ required by this bound in `SerializeSeq::serialize_element`

@parasyte
Copy link
Author

This is a duplicate of #205 😂

@parasyte parasyte closed this Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant