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

Serialize defined multiple of times #9

Closed
zaibacu opened this issue Jan 18, 2022 · 4 comments · Fixed by #10
Closed

Serialize defined multiple of times #9

zaibacu opened this issue Jan 18, 2022 · 4 comments · Fixed by #10
Assignees

Comments

@zaibacu
Copy link

zaibacu commented Jan 18, 2022

I'm getting following error when trying to use it.

  |
5 | use serde::{Serialize, Serializer};
  |             --------- previous import of the macro `Serialize` here
6 | use serde_derive::Serialize;
  |     ^^^^^^^^^^^^^^^^^^^^^^^ `Serialize` reimported here
  |
  = note: `Serialize` must be defined only once in the macro namespace of this module

Seems to be telling the truth: https://github.com/EasyPost/rust-mysql-binlog/blob/master/src/value.rs#L4

@Roguelazer
Copy link
Contributor

Ah, this is a change in newer versions of Serde. I'll fix it.

@Roguelazer Roguelazer self-assigned this Jan 18, 2022
@Roguelazer
Copy link
Contributor

(specifically, derive behavior can be exposed from serde directly via a feature, and I imagine one of your other dependencies is selecting that feature)

@Roguelazer
Copy link
Contributor

v0.3.2 is now available on crates.io which fixes this issue

thanks for reporting!

@zaibacu
Copy link
Author

zaibacu commented Jan 19, 2022

Thank you for fixing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants