Skip to content

Commit bd4198a

Browse files
committed
fix: clippy again
1 parent c7cc0f5 commit bd4198a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

common/src/queries/utils.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ where
3333
T: Serialize,
3434
{
3535
let data = query_state(context, topic, request_msg, |response| {
36-
extractor(response).unwrap_or_else(|e| {
37-
Err(QueryError::internal_error(format!(
38-
"Unexpected response message type while calling {topic}"
39-
)))
40-
})
36+
extractor(response).ok_or_else(Err(QueryError::internal_error(format!(
37+
"Unexpected response message type while calling {topic}"
38+
))))
4139
})
4240
.await?;
4341

0 commit comments

Comments
 (0)