Skip to content

Commit

Permalink
Fix clippy warning in tests (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch authored Jan 14, 2025
1 parent ae23214 commit df43c00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Code format check
run: cargo fmt --check -- --config "unstable_features=true,imports_granularity=Crate,group_imports=StdExternalCrate"
- name: Clippy
run: cargo clippy --all --examples -- -D warnings
run: cargo clippy --all-targets --examples -- -D warnings

- name: Build zenoh-plugin-mqtt
run: cargo build -p zenoh-plugin-mqtt --verbose --all-targets
Expand Down
2 changes: 1 addition & 1 deletion zenoh-plugin-mqtt/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async fn create_mqtt_subscriber(tx: Sender<String>) {
publish.packet().topic,
publish.packet().payload
);
let payload = std::str::from_utf8(&publish.packet().payload.to_vec())
let payload = std::str::from_utf8(&publish.packet().payload)
.unwrap()
.to_owned();
tx.send(payload).unwrap();
Expand Down

0 comments on commit df43c00

Please sign in to comment.