Skip to content

Commit

Permalink
*: Run rust fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Dec 15, 2021
1 parent a08d2f9 commit 5d4d271
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion core/src/transport/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.


use crate::transport::{ListenerEvent, Transport, TransportError};
use futures::prelude::*;
use multiaddr::Multiaddr;
Expand Down
1 change: 0 additions & 1 deletion core/src/transport/choice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.


use crate::either::{EitherError, EitherFuture, EitherListenStream, EitherOutput};
use crate::transport::{Transport, TransportError};
use multiaddr::Multiaddr;
Expand Down
1 change: 0 additions & 1 deletion core/src/transport/dummy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.


use crate::transport::{ListenerEvent, Transport, TransportError};
use crate::Multiaddr;
use futures::{prelude::*, task::Context, task::Poll};
Expand Down
1 change: 0 additions & 1 deletion core/src/transport/map_err.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.


use crate::transport::{ListenerEvent, Transport, TransportError};
use futures::prelude::*;
use multiaddr::Multiaddr;
Expand Down
1 change: 0 additions & 1 deletion core/src/transport/optional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.


use crate::transport::{Transport, TransportError};
use multiaddr::Multiaddr;

Expand Down
2 changes: 1 addition & 1 deletion core/src/transport/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
pub use crate::upgrade::Version;

use crate::{
connection::{ConnectedPoint},
connection::ConnectedPoint,
muxing::{StreamMuxer, StreamMuxerBox},
transport::{
and_then::AndThen, boxed::boxed, timeout::TransportTimeout, ListenerEvent, Transport,
Expand Down
4 changes: 1 addition & 3 deletions protocols/rendezvous/tests/harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ use libp2p::core::upgrade::SelectUpgrade;
use libp2p::core::{identity, Multiaddr, PeerId, Transport};
use libp2p::mplex::MplexConfig;
use libp2p::noise::{Keypair, NoiseConfig, X25519Spec};
use libp2p::swarm::{
AddressScore, NetworkBehaviour, Swarm, SwarmBuilder, SwarmEvent,
};
use libp2p::swarm::{AddressScore, NetworkBehaviour, Swarm, SwarmBuilder, SwarmEvent};
use libp2p::yamux::YamuxConfig;
use std::fmt::Debug;
use std::time::Duration;
Expand Down
2 changes: 1 addition & 1 deletion transports/noise/tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ use futures::{
future::{self, Either},
prelude::*,
};
use libp2p_core::identity;
use libp2p_core::transport::{ListenerEvent, Transport};
use libp2p_core::upgrade::{self, apply_inbound, apply_outbound, Negotiated};
use libp2p_core::{identity};
use libp2p_noise::{
Keypair, NoiseConfig, NoiseError, NoiseOutput, RemoteIdentity, X25519Spec, X25519,
};
Expand Down
2 changes: 1 addition & 1 deletion transports/websocket/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use error::Error;
use framed::{Connection, Incoming};
use futures::{future::BoxFuture, prelude::*, ready, stream::BoxStream};
use libp2p_core::{
connection::{ConnectedPoint},
connection::ConnectedPoint,
multiaddr::Multiaddr,
transport::{
map::{MapFuture, MapStream},
Expand Down

0 comments on commit 5d4d271

Please sign in to comment.