Skip to content

Commit aa8249c

Browse files
committed
define a Deserializer from JS values
1 parent 4290500 commit aa8249c

7 files changed

Lines changed: 473 additions & 13 deletions

File tree

crates/bindings-macro/src/sats.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,10 @@ pub(crate) fn derive_deserialize(ty: &SatsType<'_>) -> TokenStream {
454454
}
455455
}
456456

457-
fn visit_seq<__E: #spacetimedb_lib::de::Error>(self, index: usize, name: &str) -> Result<Self::Output, __E> {
457+
fn visit_seq(self, index: usize) -> Self::Output {
458458
match index {
459-
#(#iter_n4 => Ok(__ProductFieldIdent::#field_names),)*
460-
_ => Err(#spacetimedb_lib::de::Error::unknown_field_name(name, &self)),
459+
#(#iter_n4 => __ProductFieldIdent::#field_names,)*
460+
_ => core::unreachable!(),
461461
}
462462
}
463463
}

0 commit comments

Comments
 (0)