File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
framework/star_frame/src/data_types Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ impl<T: ?Sized> From<Pubkey> for KeyFor<T> {
8282}
8383
8484// Safety: `KeyFor` is a transparent wrapper around a `Pubkey` which is `Zeroable`
85+ #[ allow( trivial_bounds) ]
8586unsafe impl < T : ?Sized > Zeroable for KeyFor < T >
8687where
8788 Pubkey : Zeroable ,
9495 }
9596}
9697// Safety: `KeyFor` is a transparent wrapper around a `Pubkey` which is `Pod`
98+ #[ allow( trivial_bounds) ]
9799unsafe impl < T : ' static + ?Sized > Pod for KeyFor < T > where Pubkey : Pod { }
98100
99101#[ cfg( feature = "idl" ) ]
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ impl<T: 'static + ?Sized> From<KeyFor<T>> for OptionalKeyFor<T> {
140140}
141141
142142// Safety: `OptionalKeyFor` is a transparent wrapper around a `Pubkey` which is `Zeroable`
143+ #[ allow( trivial_bounds) ]
143144unsafe impl < T : ?Sized > Zeroable for OptionalKeyFor < T >
144145where
145146 Pubkey : Zeroable ,
@@ -152,6 +153,7 @@ where
152153 }
153154}
154155// Safety: `OptionalKeyFor` is a transparent wrapper around a `Pubkey` which is `Pod`
156+ #[ allow( trivial_bounds) ]
155157unsafe impl < T : ' static + ?Sized > Pod for OptionalKeyFor < T > where Pubkey : Pod { }
156158
157159#[ cfg( feature = "idl" ) ]
You can’t perform that action at this time.
0 commit comments