Skip to content

Commit

Permalink
example build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Mar 28, 2024
1 parent fb6509d commit 2ff6bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/examples/z_pub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ async fn main() {
println!("Putting Data ('{}': '{}')...", &key_expr, buf);
let mut put = publisher.put(buf);
if let Some(attachment) = &attachment {
put = put.attachment(
put = put.attachment(Some(
attachment
.split('&')
.map(|pair| split_once(pair, '='))
.collect(),
)
))
}
put.res().await.unwrap();
}
Expand Down

0 comments on commit 2ff6bc2

Please sign in to comment.