diff --git a/Cargo.toml b/Cargo.toml index ccaa9eb..69e1873 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ js-sys = "0.3.70" tokio = { version = "1", features = ["sync", "macros"] } bytes = "1" -derive_more = { version = "1", features = ["from", "as_ref"] } +derive_more = { version = "1", features = ["from", "deref", "deref_mut"] } [dependencies.web-sys] version = "0.3.70" diff --git a/src/video/frame.rs b/src/video/frame.rs index 45c798f..295a191 100644 --- a/src/video/frame.rs +++ b/src/video/frame.rs @@ -1,6 +1,6 @@ -use derive_more::{AsMut, AsRef, From}; +use derive_more::{Deref, DerefMut, From}; -#[derive(Debug, From, AsRef, AsMut)] +#[derive(Debug, From, Deref, DerefMut)] pub struct VideoFrame(pub web_sys::VideoFrame); // Make sure we close the frame on drop.