fix clippy error

This commit is contained in:
vicanso 2024-07-28 09:58:38 +08:00
parent 6a09b52c5e
commit 1421c26756

View file

@ -446,8 +446,10 @@ mod test {
unhealthy_count: unhealthy_count.clone(), unhealthy_count: unhealthy_count.clone(),
}; };
let bob = Box::new(ob); let bob = Box::new(ob);
let mut tcp_check = TcpHealthCheck::default(); let tcp_check = TcpHealthCheck {
tcp_check.health_changed_callback = Some(bob); health_changed_callback: Some(bob),
..Default::default()
};
let discovery = discovery::Static::default(); let discovery = discovery::Static::default();
let mut backends = Backends::new(Box::new(discovery)); let mut backends = Backends::new(Box::new(discovery));