feat(interface-types) InterfaceValue::Record now takes a Vec1.

It matches the definition of `InterfaceType::Record`.
This commit is contained in:
Ivan Enderlin
2020-04-09 12:10:48 +02:00
parent 81bb278b4c
commit c79669c4d1
8 changed files with 77 additions and 54 deletions

View File

@ -1,6 +1,8 @@
//! Collection of helpful macros.
/// This macro creates a `Vec1` by checking at compile-time that its
/// invariant holds.
#[allow(unused)]
#[macro_export]
macro_rules! vec1 {
($item:expr; 0) => {
compile_error!("Cannot create an empty `Vec1`, it violates its invariant.")