diff --git a/swarm/CHANGELOG.md b/swarm/CHANGELOG.md index 6c4bb389..159c61af 100644 --- a/swarm/CHANGELOG.md +++ b/swarm/CHANGELOG.md @@ -47,17 +47,21 @@ - Rename `NetworkBehaviour::OutEvent` to `NetworkBehaviour::ToSwarm`, `ConnectionHandler::InEvent` to `ConnectionHandler::FromBehaviour`, `ConnectionHandler::OutEvent` to `ConnectionHandler::ToBehaviour`. See [PR 3848]. +- Remove deprecated `NetworkBehaviourAction` type. + See [PR 3919]. + [PR 3605]: https://github.com/libp2p/rust-libp2p/pull/3605 [PR 3651]: https://github.com/libp2p/rust-libp2p/pull/3651 [PR 3715]: https://github.com/libp2p/rust-libp2p/pull/3715 [PR 3746]: https://github.com/libp2p/rust-libp2p/pull/3746 +[PR 3848]: https://github.com/libp2p/rust-libp2p/pull/3848 [PR 3865]: https://github.com/libp2p/rust-libp2p/pull/3865 [PR 3882]: https://github.com/libp2p/rust-libp2p/pull/3882 [PR 3884]: https://github.com/libp2p/rust-libp2p/pull/3884 [PR 3885]: https://github.com/libp2p/rust-libp2p/pull/3885 [PR 3886]: https://github.com/libp2p/rust-libp2p/pull/3886 [PR 3912]: https://github.com/libp2p/rust-libp2p/pull/3912 -[PR 3848]: https://github.com/libp2p/rust-libp2p/pull/3848 +[PR 3919]: https://github.com/libp2p/rust-libp2p/pull/3919 ## 0.42.2 diff --git a/swarm/src/behaviour.rs b/swarm/src/behaviour.rs index e35f412f..c5e5b7f2 100644 --- a/swarm/src/behaviour.rs +++ b/swarm/src/behaviour.rs @@ -257,9 +257,6 @@ pub trait PollParameters { fn local_peer_id(&self) -> &PeerId; } -#[deprecated(note = "Use `ToSwarm` instead.")] -pub type NetworkBehaviourAction = ToSwarm; - /// A command issued from a [`NetworkBehaviour`] for the [`Swarm`]. /// /// [`Swarm`]: super::Swarm diff --git a/swarm/src/lib.rs b/swarm/src/lib.rs index 16dd9511..f0f5f07c 100644 --- a/swarm/src/lib.rs +++ b/swarm/src/lib.rs @@ -92,8 +92,6 @@ pub mod derive_prelude { pub use crate::ConnectionHandlerSelect; pub use crate::DialError; pub use crate::NetworkBehaviour; - #[allow(deprecated)] - pub use crate::NetworkBehaviourAction; pub use crate::PollParameters; pub use crate::THandler; pub use crate::THandlerInEvent; @@ -108,8 +106,6 @@ pub mod derive_prelude { pub use libp2p_identity::PeerId; } -#[allow(deprecated)] -pub use behaviour::NetworkBehaviourAction; pub use behaviour::{ AddressChange, CloseConnection, ConnectionClosed, DialFailure, ExpiredExternalAddr, ExpiredListenAddr, ExternalAddresses, FromSwarm, ListenAddresses, ListenFailure,