Skip to content

Commit 65ab635

Browse files
committed
PR fixes
1 parent 84f2061 commit 65ab635

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

sway-core/src/type_system/monomorphization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ pub(crate) fn monomorphize_with_modpath<T>(
261261
subst_ctx: &SubstTypesContext,
262262
) -> Result<(), ErrorEmitted>
263263
where
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,

sway-lib-std/src/codec.sw

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)