Skip to content

Commit

Permalink
Actually use DerefMut wrapper. (#4)
Browse files Browse the repository at this point in the history
* Drop frames when done.

* Actually use DerefMut instead.
  • Loading branch information
kixelated authored Nov 26, 2024
1 parent c6df5d5 commit 68e273e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/video/frame.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 68e273e

Please sign in to comment.