File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
sway-core/src/type_system Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ pub(crate) fn monomorphize_with_modpath<T>(
261261 subst_ctx : & SubstTypesContext ,
262262) -> Result < ( ) , ErrorEmitted >
263263where
264- T : std :: fmt :: Debug + MonomorphizeHelper + SubstTypes + MaterializeConstGenerics ,
264+ T : MonomorphizeHelper + SubstTypes + MaterializeConstGenerics ,
265265{
266266 let type_mapping = prepare_type_subst_map_for_monomorphize (
267267 handler,
Original file line number Diff line number Diff line change @@ -6951,13 +6951,16 @@ where
69516951 }
69526952}
69536953
6954- impl <T > AbiEncode for TrivialEnum <T > {
6954+ impl <T > AbiEncode for TrivialEnum <T >
6955+ where
6956+ T : AbiEncode
6957+ {
69556958 fn is_encode_trivial () -> bool {
69566959 true
69576960 }
69586961
69596962 fn abi_encode (self , buffer : Buffer ) -> Buffer {
6960- buffer
6963+ self . value . abi_encode ( buffer )
69616964 }
69626965}
69636966
You can’t perform that action at this time.
0 commit comments