Skip to content

Commit

Permalink
clippy doesn't like big types
Browse files Browse the repository at this point in the history
  • Loading branch information
jbr committed Apr 27, 2023
1 parent 84689ec commit 215c6da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/src/runtimeless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use trillium::Info;
use trillium_server_common::{Acceptor, Config, ConfigExt, Connector, Server};
use url::Url;

static SERVERS: Lazy<DashMap<(String, u16), (Sender<TestTransport>, Receiver<TestTransport>)>> =
Lazy::new(|| Default::default());
type Servers = Lazy<DashMap<(String, u16), (Sender<TestTransport>, Receiver<TestTransport>)>>;
static SERVERS: Servers = Lazy::new(|| Default::default());

/// A [`Server`] for testing that does not depend on any runtime
#[derive(Debug)]
Expand Down Expand Up @@ -51,7 +51,7 @@ impl Server for RuntimelessServer {
}

fn info(&self) -> Info {
Info::from(&*format!("test server :{}", self.port))
Info::from(&*format!("test server {}:{}", self.host, self.port))
}

fn block_on(fut: impl Future<Output = ()> + 'static) {
Expand Down

0 comments on commit 215c6da

Please sign in to comment.