Skip to content

Commit

Permalink
fix: Add missing Data to [u8] deref (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 authored Jan 9, 2025
1 parent baab869 commit 009a632
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/engine/src/mocked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 009a632

Please sign in to comment.