Skip to content

Commit

Permalink
fix(clippy): examples (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 authored Feb 15, 2024
1 parent b031367 commit e28cdf1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion examples/webhook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit e28cdf1

Please sign in to comment.