diff --git a/server-common/src/config.rs b/server-common/src/config.rs index 19f2c5f655..d90f3393d9 100644 --- a/server-common/src/config.rs +++ b/server-common/src/config.rs @@ -245,32 +245,6 @@ impl Config { } } -impl Clone for Config -where - ServerType: Server, - AcceptorType: Acceptor + Clone, -{ - fn clone(&self) -> Self { - if self.has_binding() { - eprintln!("cloning a Config with a pre-bound listener will not clone the listener. this may be a panic in the future."); - } - - Self { - acceptor: self.acceptor.clone(), - port: self.port, - host: self.host.clone(), - server: PhantomData, - nodelay: self.nodelay, - swansong: self.swansong.clone(), - register_signals: self.register_signals, - max_connections: self.max_connections, - info: AsyncCell::shared(), - binding: RwLock::new(None), - http_config: self.http_config, - } - } -} - impl Default for Config { fn default() -> Self { #[cfg(unix)]