@@ -77,23 +77,20 @@ impl ActorMessage for SubscribeImageMessage {
7777#[ non_exhaustive]
7878#[ derive( Debug , Clone ) ]
7979pub struct BroadcastImage {
80- pub image : Arc < LumaImage > ,
80+ pub image : LumaImage ,
8181 pub hash : Option < StableHash > ,
8282}
8383
8484impl BroadcastImage {
85- pub fn with_hash ( image : impl Into < Arc < LumaImage > > , hash : Option < StableHash > ) -> Self {
86- Self {
87- image : image. into ( ) ,
88- hash,
89- }
85+ pub fn with_hash ( image : LumaImage , hash : Option < StableHash > ) -> Self {
86+ Self { image, hash }
9087 }
9188}
9289
9390impl From < GetImageOk > for BroadcastImage {
9491 fn from ( o : GetImageOk ) -> Self {
9592 Self {
96- image : Arc :: new ( o. image ) ,
93+ image : o. image ,
9794 hash : o. meta . hash ,
9895 }
9996 }
@@ -113,19 +110,19 @@ impl From<LocalizableBroadcastImage> for BroadcastImage {
113110#[ non_exhaustive]
114111#[ derive( Clone ) ]
115112pub struct LocalizableBroadcastImage {
116- pub image : Arc < LumaImage > ,
113+ pub image : LumaImage ,
117114 pub hash : Option < StableHash > ,
118115 pub projector : Option < DynamicPointProjector > ,
119116}
120117
121118impl LocalizableBroadcastImage {
122119 pub fn with_hash_and_projector (
123- image : impl Into < Arc < LumaImage > > ,
120+ image : LumaImage ,
124121 hash : Option < StableHash > ,
125122 projector : Option < DynamicPointProjector > ,
126123 ) -> Self {
127124 Self {
128- image : image . into ( ) ,
125+ image,
129126 hash,
130127 projector,
131128 }
@@ -166,7 +163,7 @@ pub struct GetLocalizableImageOk {
166163impl From < GetLocalizableImageOk > for BroadcastImage {
167164 fn from ( value : GetLocalizableImageOk ) -> Self {
168165 Self {
169- image : Arc :: new ( value. image ) ,
166+ image : value. image ,
170167 hash : value. hash ,
171168 }
172169 }
0 commit comments