diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8fd2340..1acc7b8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,7 +28,7 @@ jobs: cargo: - name: "Clippy" cmd: clippy - args: --workspace --all-features --tests -- -D warnings + args: --workspace --all-features --all-targets -- -D warnings rust: stable - name: "Formatting" cmd: fmt diff --git a/examples/http_client.rs b/examples/http_client.rs index d7b5c10..1febf6c 100644 --- a/examples/http_client.rs +++ b/examples/http_client.rs @@ -64,7 +64,7 @@ async fn main() -> anyhow::Result<()> { let messages = client2.fetch(topic).await?.messages; let message = messages - .get(0) + .first() .ok_or(anyhow::anyhow!("fetch did not return any messages"))?; println!("[client2] received message: {}", message.message); diff --git a/examples/webhook.rs b/examples/webhook.rs index 1294d1f..36cf6de 100644 --- a/examples/webhook.rs +++ b/examples/webhook.rs @@ -206,7 +206,7 @@ async fn main() -> anyhow::Result<()> { let messages = subscriber.fetch(topic).await?.messages; let message = messages - .get(0) + .first() .ok_or(anyhow::anyhow!("fetch did not return any messages"))?; println!("[subscriber] received message: {}", message.message); diff --git a/justfile b/justfile index 4cb6e46..2cd7d52 100644 --- a/justfile +++ b/justfile @@ -53,7 +53,7 @@ clippy: if command -v cargo-clippy >/dev/null; then echo '==> Running clippy' - cargo clippy --workspace --all-features --tests -- -D clippy::all -W clippy::style + cargo clippy --workspace --all-features --all-targets -- -D clippy::all -W clippy::style else echo '==> clippy not found in PATH, skipping' echo ' ^^^^^^ To install `rustup component add clippy`, see https://github.com/rust-lang/rust-clippy for details'