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 compilation with serde 1.0.119 #1912

Merged
merged 1 commit into from
Jan 12, 2021
Merged

Fix compilation with serde 1.0.119 #1912

merged 1 commit into from
Jan 12, 2021

Conversation

tomaka
Copy link
Member

@tomaka tomaka commented Jan 12, 2021

I have no idea why, but the person who introduced this code decided to use serde::export::Formatter, which is a hidden export not supposed to be used, instead of std::fmt::Formatter, even though they're the same thing.

In serde 1.0.119, the export module is no longer public, which broke the build.

@romanb romanb merged commit eeaffd3 into master Jan 12, 2021
@tomaka tomaka deleted the tomaka-patch-1 branch January 12, 2021 09:57
@romanb
Copy link
Contributor

romanb commented Jan 12, 2021

Published as parity-multiaddr-0.10.1.

@sdbondi
Copy link
Contributor

sdbondi commented Jan 13, 2021

Thanks for the fix @tomaka, the auto-import (rust-analyser?) feature in my IDE doesn't choose std exports over re-exports - so no 'real' reason the serde re-export was used, just a mistake 😄

sdbondi added a commit to tari-project/rust-libp2p that referenced this pull request Jan 13, 2021
In serde 1.0.119, the export module is no longer public which breaks the build.
mxinden pushed a commit to mxinden/rust-libp2p that referenced this pull request Jan 14, 2021
mxinden added a commit that referenced this pull request Jan 14, 2021
* Update onion_addr.rs (#1912)

* misc/multiaddr: Prepare v0.9.7 release

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
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.

3 participants