Skip to content

Commit 1e6b28d

Browse files
danield137Copilot
andcommitted
Fix clippy collapsible_if warning
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 81a25a8 commit 1e6b28d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ pub fn parse_v2_response(reader: impl Read) -> Result<QueryResult, String> {
199199

200200
// Check for errors in DataSetCompletion
201201
for frame in &frames {
202-
if frame.get("FrameType").and_then(|f| f.as_str()) == Some("DataSetCompletion") {
203-
if frame.get("HasErrors").and_then(|h| h.as_bool()) == Some(true) {
204-
return Err("Query returned errors (HasErrors: true)".into());
205-
}
202+
if frame.get("FrameType").and_then(|f| f.as_str()) == Some("DataSetCompletion")
203+
&& frame.get("HasErrors").and_then(|h| h.as_bool()) == Some(true)
204+
{
205+
return Err("Query returned errors (HasErrors: true)".into());
206206
}
207207
}
208208

0 commit comments

Comments
 (0)