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 warning in tests #301

Merged
merged 2 commits into from
Jan 14, 2025
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.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
Loading