Skip to content

Commit

Permalink
remove unused Duration
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs committed Nov 29, 2024
1 parent 8506bc7 commit a83d6b2
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/autonat/src/bin/autonat_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#![doc = include_str!("../../README.md")]

use std::{error::Error, net::Ipv4Addr, time::Duration};
use std::{error::Error, net::Ipv4Addr};

use clap::Parser;
use futures::StreamExt;
Expand Down
5 changes: 1 addition & 4 deletions examples/browser-webrtc/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#![allow(non_upper_case_globals)]

use std::{
net::{Ipv4Addr, SocketAddr},
time::Duration,
};
use std::net::{Ipv4Addr, SocketAddr};

use anyhow::Result;
use axum::{
Expand Down
2 changes: 1 addition & 1 deletion examples/dcutr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#![doc = include_str!("../README.md")]

use std::{error::Error, str::FromStr, time::Duration};
use std::{error::Error, str::FromStr};

use clap::Parser;
use futures::{executor::block_on, future::FutureExt, stream::StreamExt};
Expand Down
2 changes: 1 addition & 1 deletion examples/distributed-key-value-store/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#![doc = include_str!("../README.md")]

use std::{error::Error, time::Duration};
use std::error::Error;

use futures::stream::StreamExt;
use libp2p::{
Expand Down
2 changes: 1 addition & 1 deletion examples/identify/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#![doc = include_str!("../README.md")]

use std::{error::Error, time::Duration};
use std::error::Error;

use futures::StreamExt;
use libp2p::{core::multiaddr::Multiaddr, identify, noise, swarm::SwarmEvent, tcp, yamux};
Expand Down
2 changes: 1 addition & 1 deletion examples/ipfs-private/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#![doc = include_str!("../README.md")]

use std::{env, error::Error, fs, path::Path, str::FromStr, time::Duration};
use std::{env, error::Error, fs, path::Path, str::FromStr};

use either::Either;
use futures::prelude::*;
Expand Down
2 changes: 1 addition & 1 deletion examples/metrics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#![doc = include_str!("../README.md")]

use std::{error::Error, time::Duration};
use std::error::Error;

use futures::StreamExt;
use libp2p::{
Expand Down
2 changes: 0 additions & 2 deletions transports/tls/tests/smoke.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::time::Duration;

use futures::{future, StreamExt};
use libp2p_core::{multiaddr::Protocol, transport::MemoryTransport, upgrade::Version, Transport};
use libp2p_swarm::{dummy, Config, Swarm, SwarmEvent};
Expand Down

0 comments on commit a83d6b2

Please sign in to comment.