rm clone because panic

This commit is contained in:
Floriane TUERNAL SABOTINOV
2025-09-08 13:20:28 +02:00
parent a117d9089b
commit 002055cb9f
@@ -917,7 +917,8 @@ impl<R, S> FreshHandler<R, S> {
} => self.handle_register(protocol_version, data).await,
ClientControlRequest::SupportedProtocol { .. } => {
self.handle_reply_supported_protocol_request().await;
return Ok((None, Some(child_span.clone())));
let exit_span = info_span!("supported_protocol_request_handled");
return Ok((None, Some(exit_span)));
}
_ => {
debug!("received an invalid client request");
@@ -957,7 +958,8 @@ impl<R, S> FreshHandler<R, S> {
return Err(InitialAuthenticationError::EmptyClientDetails);
};
Ok((Some(client_details), Some(child_span.clone())))
let exit_span = info_span!("initial client request handled");
Ok((Some(client_details), Some(exit_span)))
}
#[instrument(skip_all)]