Small cleanup
All checks were successful
Build and deploy / Build application (push) Successful in 4m43s
Check / Run checks (push) Successful in 2m24s
Build and deploy / Build container (push) Successful in 58s
Build and deploy / Deploy container (push) Has been skipped

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

View File

@ -1,5 +1,5 @@
use std::collections::HashMap;
use std::ops::{Deref, DerefMut};
use std::ops::Deref;
use std::pin::Pin;
use std::sync::Arc;
@ -33,12 +33,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 {
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()) });