fast image operations
Diffstat (limited to 'src/sub.rs')
-rw-r--r--src/sub.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sub.rs b/src/sub.rs
index d4b6395..531bfe7 100644
--- a/src/sub.rs
+++ b/src/sub.rs
@@ -153,7 +153,7 @@ impl<W, const C: usize> SubImage<W, C> {
/// # Safety
///
/// this pixel must be in bounds.
- pub unsafe fn pixel<U: Copy>(&self, x: u32, y: u32) -> [U; C]
+ pub unsafe fn pixel<U: Copy>(&self, x: u32, y: u32) -> &[U; C]
where
W: AsRef<[U]>,
{