Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix new clippy warning
Browse files Browse the repository at this point in the history
nathanielc committed Dec 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 24ed857 commit f7296e0
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ CARGO = CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse RUSTFLAGS="--cfg tokio_unstab
all: build check-fmt check-clippy test

.PHONY: test
test: update
test:
# Test with default features
${CARGO} test --locked
# Test with all features
@@ -20,7 +20,7 @@ check-fmt:
update:
${CARGO} update

.PHONY: check-clippy
.PHONY: check-clippy
check-clippy:
# Check with default features
${CARGO} clippy --workspace
2 changes: 1 addition & 1 deletion runner/src/scenario/ceramic/query.rs
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ async fn query_large_mid_verify_edges(
)
.await?;

if resp.edges.first().is_none() {
if resp.edges.is_empty() {
goose_try!(user, "query", &mut metrics, {
Err(anyhow::anyhow!("no edges returned"))
})?;

0 comments on commit f7296e0

Please sign in to comment.