From 76a5a39ca9c2d02beb714b78e626d2dd4fd75651 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 11 Aug 2023 04:06:55 +0200 Subject: [PATCH] Fixed build --- google-home/Cargo.toml | 2 +- google-home/src/device.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/google-home/Cargo.toml b/google-home/Cargo.toml index c47b3fe..e36e6b4 100644 --- a/google-home/Cargo.toml +++ b/google-home/Cargo.toml @@ -10,6 +10,6 @@ impl_cast = { path = "../impl_cast" } serde = { version = "1.0.149", features = ["derive"] } serde_json = "1.0.89" thiserror = "1.0.37" -tokio = "1" +tokio = { version = "1", features = ["sync"] } async-trait = "0.1.61" futures = "0.3.25" diff --git a/google-home/src/device.rs b/google-home/src/device.rs index 6829fa3..95655a9 100644 --- a/google-home/src/device.rs +++ b/google-home/src/device.rs @@ -80,7 +80,6 @@ pub trait GoogleHomeDevice: AsGoogleHomeDevice + Sync + Send + 'static { // OnOff if let Some(on_off) = As::::cast(self) { traits.push(Trait::OnOff); - let on_off = on_off; device.attributes.command_only_on_off = on_off.is_command_only(); device.attributes.query_only_on_off = on_off.is_query_only(); }