diff --git a/crates/engine/src/mocked.rs b/crates/engine/src/mocked.rs index 608bc7bda..87210d4d5 100644 --- a/crates/engine/src/mocked.rs +++ b/crates/engine/src/mocked.rs @@ -1274,6 +1274,13 @@ impl Data { } } +impl Deref for Data { + type Target = [u8]; + fn deref(&self) -> &Self::Target { + unimplemented!("This is mocked") + } +} + #[repr(C)] #[derive(Copy, Clone, PartialEq, Eq, Default, Debug)] pub struct IRect {