mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-04-25 03:02:12 +00:00
Instead of having one struct with uninitialised fields which are mutated, have explicit states and ensure that the types show that there is no ambiguity which data is available or not. Consequently, this removes quite a few `unwrap`/`expect` calls.