Skip to content

Commit

Permalink
Remove un-needed into() call (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwehrhan authored Jun 4, 2024
1 parent c2861f3 commit eabc75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/messaging/pub-sub/rust/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async fn main() -> Result<(), async_nats::Error> {

// Publish to three different subjects matching the wildcard.
for subject in ["greet.sue", "greet.bob", "greet.pam"] {
client.publish(subject.into(), "hello".into()).await?;
client.publish(subject, "hello".into()).await?;
}

// Notice that the first message received is `greet.sue` and not
Expand Down

1 comment on commit eabc75e

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for nats-by-example ready!

✅ Preview
https://nats-by-example-nyh84h50z-connecteverything.vercel.app

Built with commit eabc75e.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.