diff --git a/src/net/rpc.rs b/src/net/rpc.rs index 19495027..1bc565bb 100644 --- a/src/net/rpc.rs +++ b/src/net/rpc.rs @@ -32,7 +32,7 @@ use warp::Filter; type WebSockets = RwLock>>; -static WEBSOCKETS: Lazy = Lazy::new(|| WebSockets::default()); +static WEBSOCKETS: Lazy = Lazy::new(WebSockets::default); #[allow(opaque_hidden_inferred_bound)] pub fn config() -> impl Filter + Clone {