Skip to content

Fix compilation with serde 1.0.119#1912

Merged
romanb merged 1 commit intomasterfrom
tomaka-patch-1
Jan 12, 2021
Merged

Fix compilation with serde 1.0.119#1912
romanb merged 1 commit intomasterfrom
tomaka-patch-1

Conversation

@tomaka
Copy link
Copy Markdown
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
Copy Markdown
Contributor

romanb commented Jan 12, 2021

Published as parity-multiaddr-0.10.1.

@sdbondi
Copy link
Copy Markdown
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