summaryrefslogtreecommitdiffstats
path: root/native/src/image.rs
diff options
context:
space:
mode:
authorLibravatar Bingus <shankern@protonmail.com>2023-02-20 10:04:36 -0800
committerLibravatar Bingus <shankern@protonmail.com>2023-02-20 10:04:36 -0800
commit9565b477ca66ef33bf3869361b838275e411ca75 (patch)
tree490f76407909300301cbfda0bda57676fd48882a /native/src/image.rs
parent3aaf5d8873b16302badb14dc5508329c943862fb (diff)
parent8c83d40e115a182136acfe013baa7a3f795ba3a5 (diff)
downloadiced-9565b477ca66ef33bf3869361b838275e411ca75.tar.gz
iced-9565b477ca66ef33bf3869361b838275e411ca75.tar.bz2
iced-9565b477ca66ef33bf3869361b838275e411ca75.zip
Merge remote-tracking branch 'origin/master' into feat/multi-window-support
Diffstat (limited to '')
-rw-r--r--native/src/image.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/native/src/image.rs b/native/src/image.rs
index 4c5e926b..70fbade0 100644
--- a/native/src/image.rs
+++ b/native/src/image.rs
@@ -28,7 +28,7 @@ impl Handle {
pub fn from_pixels(
width: u32,
height: u32,
- pixels: impl AsRef<[u8]> + Clone + Send + Sync + 'static,
+ pixels: impl AsRef<[u8]> + Send + Sync + 'static,
) -> Handle {
Self::from_data(Data::Rgba {
width,
@@ -44,7 +44,7 @@ impl Handle {
/// This is useful if you already have your image loaded in-memory, maybe
/// because you downloaded or generated it procedurally.
pub fn from_memory(
- bytes: impl AsRef<[u8]> + Clone + Send + Sync + 'static,
+ bytes: impl AsRef<[u8]> + Send + Sync + 'static,
) -> Handle {
Self::from_data(Data::Bytes(Bytes::new(bytes)))
}
@@ -93,7 +93,7 @@ pub struct Bytes(Arc<dyn AsRef<[u8]> + Send + Sync + 'static>);
impl Bytes {
/// Creates new [`Bytes`] around `data`.
- pub fn new(data: impl AsRef<[u8]> + Clone + Send + Sync + 'static) -> Self {
+ pub fn new(data: impl AsRef<[u8]> + Send + Sync + 'static) -> Self {
Self(Arc::new(data))
}
}