Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(clippy): examples #63

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

.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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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
Loading