chore: address Rust 1.76 clippy lints (#3605)

This commit is contained in:
Chethan Rao
2024-02-12 12:36:22 +05:30
committed by GitHub
parent d3fb705ed2
commit c55eb0afca
7 changed files with 34 additions and 23 deletions

View File

@ -42,7 +42,7 @@ where
let start_instant = Instant::now();
logger::info!(tag = ?Tag::BeginRequest, payload = ?payload);
let res = match metrics::request::record_request_time_metric(
let server_wrap_util_res = metrics::request::record_request_time_metric(
api::server_wrap_util(
&flow,
state.clone().into(),
@ -58,7 +58,9 @@ where
.map(|response| {
logger::info!(api_response =? response);
response
}) {
});
let res = match server_wrap_util_res {
Ok(api::ApplicationResponse::Json(response)) => {
let response = S::try_from(response);
match response {