Small cleanup
All checks were successful
Build and deploy / Build application (push) Successful in 3m24s
Check / Run checks (push) Successful in 2m0s
Build and deploy / Build container (push) Successful in 39s
Build and deploy / Deploy container (push) Successful in 32s

This commit is contained in:
Dreaded_X 2024-07-26 02:06:23 +02:00
parent 14e14ca479
commit c26100c238
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4

View File

@ -1,8 +1,9 @@
use std::collections::HashMap; use std::collections::HashMap;
use std::ops::{Deref, DerefMut}; use std::ops::Deref;
use std::pin::Pin; use std::pin::Pin;
use std::sync::Arc; use std::sync::Arc;
use automation_cast::Cast;
use futures::future::join_all; use futures::future::join_all;
use futures::Future; use futures::Future;
use google_home::traits::OnOff; use google_home::traits::OnOff;
@ -33,12 +34,6 @@ impl Deref for WrappedDevice {
} }
} }
impl DerefMut for WrappedDevice {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl mlua::UserData for WrappedDevice { impl mlua::UserData for WrappedDevice {
fn add_methods<'lua, M: mlua::prelude::LuaUserDataMethods<'lua, Self>>(methods: &mut M) { fn add_methods<'lua, M: mlua::prelude::LuaUserDataMethods<'lua, Self>>(methods: &mut M) {
methods.add_async_method("get_id", |_lua, this, _: ()| async { Ok(this.get_id()) }); methods.add_async_method("get_id", |_lua, this, _: ()| async { Ok(this.get_id()) });