diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41f8ca5..7a98e1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/zenoh-plugin-mqtt/tests/test.rs b/zenoh-plugin-mqtt/tests/test.rs index 8e7ee79..833da60 100644 --- a/zenoh-plugin-mqtt/tests/test.rs +++ b/zenoh-plugin-mqtt/tests/test.rs @@ -83,7 +83,7 @@ async fn create_mqtt_subscriber(tx: Sender) { 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();